home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / AIncludes / Quickdraw.a < prev    next >
Encoding:
Text File  |  1995-04-18  |  54.0 KB  |  2,468 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Quickdraw.a
  3. ;
  4. ;    Contains:    QuickDraw Graphics Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  21. __QUICKDRAW__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  30.     include 'MixedMode.a'
  31.     ENDIF
  32.  
  33.     IF &TYPE('__QUICKDRAWTEXT__') = 'UNDEFINED' THEN
  34.     include 'QuickdrawText.a'
  35.     ENDIF
  36.  
  37. invalColReq                        EQU        -1                    ;invalid color table request
  38. ; transfer modes 
  39. srcCopy                            EQU        0                    ;the 16 transfer modes
  40. srcOr                            EQU        1
  41. srcXor                            EQU        2
  42. srcBic                            EQU        3
  43. notSrcCopy                        EQU        4
  44. notSrcOr                        EQU        5
  45. notSrcXor                        EQU        6
  46. notSrcBic                        EQU        7
  47. patCopy                            EQU        8
  48. patOr                            EQU        9
  49. patXor                            EQU        10
  50. patBic                            EQU        11
  51. notPatCopy                        EQU        12
  52. notPatOr                        EQU        13
  53. notPatXor                        EQU        14
  54. notPatBic                        EQU        15
  55. ; Special Text Transfer Mode 
  56. grayishTextOr                    EQU        49
  57. hilitetransfermode                EQU        50
  58. ; Arithmetic transfer modes 
  59. blend                            EQU        32
  60. addPin                            EQU        33
  61.  
  62. addOver                            EQU        34
  63. subPin                            EQU        35
  64. addMax                            EQU        37
  65. adMax                            EQU        37
  66. subOver                            EQU        38
  67. adMin                            EQU        39
  68. ditherCopy                        EQU        64
  69. ; Transparent mode constant 
  70. transparent                        EQU        36
  71. italicBit                        EQU        1
  72. ulineBit                        EQU        2
  73. outlineBit                        EQU        3
  74. shadowBit                        EQU        4
  75. condenseBit                        EQU        5
  76. extendBit                        EQU        6
  77. ; QuickDraw color separation constants 
  78. normalBit                        EQU        0                    ;normal screen mapping
  79. inverseBit                        EQU        1                    ;inverse screen mapping
  80. redBit                            EQU        4                    ;RGB additive mapping
  81. greenBit                        EQU        3
  82. blueBit                            EQU        2
  83. cyanBit                            EQU        8                    ;CMYBk subtractive mapping
  84. magentaBit                        EQU        7
  85. yellowBit                        EQU        6
  86. blackBit                        EQU        5
  87. blackColor                        EQU        33                    ;colors expressed in these mappings
  88. whiteColor                        EQU        30
  89. redColor                        EQU        205
  90.  
  91. greenColor                        EQU        341
  92. blueColor                        EQU        409
  93. cyanColor                        EQU        273
  94. magentaColor                    EQU        137
  95. yellowColor                        EQU        69
  96. picLParen                        EQU        0                    ;standard picture comments
  97. picRParen                        EQU        1
  98. clutType                        EQU        0                    ;0 if lookup table
  99. fixedType                        EQU        1                    ;1 if fixed table
  100. directType                        EQU        2                    ;2 if direct values
  101. gdDevType                        EQU        0                    ;0 = monochrome 1 = color
  102.  
  103. roundedDevice                    EQU        5                    ; 1 if device has been “rounded” into the GrayRgn 
  104. hasAuxMenuBar                    EQU        6                    ; 1 if device has an aux menu bar on it 
  105. burstDevice                        EQU        7
  106. ext32Device                        EQU        8
  107. ramInit                            EQU        10                    ;1 if initialized from 'scrn' resource
  108. mainScreen                        EQU        11                    ; 1 if main screen 
  109. allInit                            EQU        12                    ; 1 if all devices initialized 
  110. screenDevice                    EQU        13                    ;1 if screen device [not used]
  111. noDriver                        EQU        14                    ; 1 if no driver for this GDevice 
  112. screenActive                    EQU        15                    ;1 if in use
  113. hiliteBit                        EQU        7                    ;flag bit in HiliteMode (lowMem flag)
  114. pHiliteBit                        EQU        0                    ;flag bit in HiliteMode used with BitClr procedure
  115. defQDColors                        EQU        127                    ;resource ID of clut for default QDColors
  116. ; pixel type 
  117. RGBDirect                        EQU        16                    ; 16 & 32 bits/pixel pixelType value 
  118. ; pmVersion values 
  119. baseAddr32                        EQU        4                    ;pixmap base address is 32-bit address
  120.  
  121. frame                            EQU        0
  122. paint                            EQU        1
  123. erase                            EQU        2
  124. invert                            EQU        3
  125. fill                            EQU        4
  126.  
  127. ; typedef SInt8             GrafVerb
  128.  
  129. chunky                            EQU        0
  130. chunkyPlanar                    EQU        1
  131. planar                            EQU        2
  132.  
  133. ; typedef SInt8             PixelType
  134. ; typedef short             Bits16[16]
  135. ;**************   IMPORTANT NOTE REGARDING Pattern  **************************************
  136. ;   Patterns were originally defined as:
  137. ;   
  138. ;        C:             typedef unsigned char Pattern[8];
  139. ;        Pascal:        Pattern = PACKED ARRAY [0..7] OF 0..255;
  140. ;        
  141. ;   The old array defintion of Pattern would cause 68000 based CPU's to crash in certain circum-
  142. ;   stances. The new struct definition is safe, but may require source code changes to compile.
  143. ;   Read the details in TechNote "Platforms & Tools" #PT 38.
  144. ;    
  145. ;********************************************************************************************
  146. Pattern                 RECORD    0
  147. pat                         ds.b   8        ; offset: $0 (0)
  148. sizeof                     EQU *            ; size:   $8 (8)
  149.                         ENDR
  150.  
  151. ; typedef struct Pattern     Pattern
  152. ;
  153. ; ConstPatternParam is now longer needed.  It was first created when Pattern was an array.
  154. ; Now that Pattern is a struct, it is more straight forward just add the "const" qualifier
  155. ; on the parameter type (e.g. "const Pattern * pat" instead of "ConstPatternParam pat").
  156. ;
  157. ; typedef Pattern             *PatPtr
  158. ; typedef PatPtr             *PatHandle
  159. ; typedef short             QDErr
  160.  
  161. singleDevicesBit                EQU        0
  162. dontMatchSeedsBit                EQU        1
  163. allDevicesBit                    EQU        2
  164.  
  165. singleDevices                    EQU        1 << singleDevicesBit
  166. dontMatchSeeds                    EQU        1 << dontMatchSeedsBit
  167. allDevices                        EQU        1 << allDevicesBit
  168.  
  169. ; typedef unsigned long     DeviceLoopFlags
  170. BitMap                     RECORD    0
  171. baseAddr                 ds.l   1        ; offset: $0 (0)
  172. rowBytes                 ds.w   1        ; offset: $4 (4)
  173. bounds                     ds     Rect    ; offset: $6 (6)
  174. sizeof                     EQU *            ; size:   $E (14)
  175.                         ENDR
  176.  
  177. ; typedef struct BitMap     BitMap
  178. ; typedef BitMap             *BitMapPtr, **BitMapHandle
  179. Cursor                     RECORD    0
  180. data                     ds.l   8        ; offset: $0 (0)
  181. mask                     ds.l   8        ; offset: $20 (32)
  182. hotSpot                     ds     Point    ; offset: $40 (64)
  183. sizeof                     EQU *            ; size:   $44 (68)
  184.                         ENDR
  185.  
  186. ; typedef struct Cursor     Cursor
  187. ; typedef Cursor             *CursPtr, **CursHandle
  188. PenState                 RECORD    0
  189. pnLoc                     ds     Point    ; offset: $0 (0)
  190. pnSize                     ds     Point    ; offset: $4 (4)
  191. pnMode                     ds.w   1        ; offset: $8 (8)
  192. pnPat                     ds     Pattern    ; offset: $A (10)
  193. sizeof                     EQU *            ; size:   $12 (18)
  194.                         ENDR
  195.  
  196. ; typedef struct PenState     PenState
  197. Region                     RECORD    0
  198. rgnSize                     ds.w   1        ; offset: $0 (0)        ;size in bytes
  199. rgnBBox                     ds     Rect    ; offset: $2 (2)        ;enclosing rectangle
  200. sizeof                     EQU *            ; size:   $A (10)
  201.                         ENDR
  202.  
  203. ; typedef struct Region     Region
  204. ; typedef Region             *RgnPtr, **RgnHandle
  205. Picture                 RECORD    0
  206. picSize                     ds.w   1        ; offset: $0 (0)
  207. picFrame                 ds     Rect    ; offset: $2 (2)
  208. sizeof                     EQU *            ; size:   $A (10)
  209.                         ENDR
  210.  
  211. ; typedef struct Picture     Picture
  212. ; typedef Picture             *PicPtr, **PicHandle
  213. Polygon                 RECORD    0
  214. polySize                 ds.w   1        ; offset: $0 (0)
  215. polyBBox                 ds     Rect    ; offset: $2 (2)
  216. polyPoints                 ds     Point    ; offset: $A (10)
  217. sizeof                     EQU *            ; size:   $E (14)
  218.                         ENDR
  219.  
  220. ; typedef struct Polygon     Polygon
  221. ; typedef Polygon             *PolyPtr, **PolyHandle
  222. QDProcs                 RECORD    0
  223. textProc                 ds.l   1        ; offset: $0 (0)
  224. lineProc                 ds.l   1        ; offset: $4 (4)
  225. rectProc                 ds.l   1        ; offset: $8 (8)
  226. rRectProc                 ds.l   1        ; offset: $C (12)
  227. ovalProc                 ds.l   1        ; offset: $10 (16)
  228. arcProc                     ds.l   1        ; offset: $14 (20)
  229. polyProc                 ds.l   1        ; offset: $18 (24)
  230. rgnProc                     ds.l   1        ; offset: $1C (28)
  231. bitsProc                 ds.l   1        ; offset: $20 (32)
  232. commentProc                 ds.l   1        ; offset: $24 (36)
  233. txMeasProc                 ds.l   1        ; offset: $28 (40)
  234. getPicProc                 ds.l   1        ; offset: $2C (44)
  235. putPicProc                 ds.l   1        ; offset: $30 (48)
  236. sizeof                     EQU *            ; size:   $34 (52)
  237.                         ENDR
  238.  
  239. ; typedef struct QDProcs     QDProcs
  240. ; typedef QDProcs             *QDProcsPtr
  241. GrafPort                 RECORD    0
  242. device                     ds.w   1        ; offset: $0 (0)
  243. portBits                 ds     BitMap    ; offset: $2 (2)
  244. portRect                 ds     Rect    ; offset: $10 (16)
  245. visRgn                     ds.l   1        ; offset: $18 (24)
  246. clipRgn                     ds.l   1        ; offset: $1C (28)
  247. bkPat                     ds     Pattern    ; offset: $20 (32)
  248. fillPat                     ds     Pattern    ; offset: $28 (40)
  249. pnLoc                     ds     Point    ; offset: $30 (48)
  250. pnSize                     ds     Point    ; offset: $34 (52)
  251. pnMode                     ds.w   1        ; offset: $38 (56)
  252. pnPat                     ds     Pattern    ; offset: $3A (58)
  253. pnVis                     ds.w   1        ; offset: $42 (66)
  254. txFont                     ds.w   1        ; offset: $44 (68)
  255. txFace                     ds.b   1        ; offset: $46 (70)        ;txFace is unpacked byte but push as short
  256. filler                     ds.b   1        ; offset: $47 (71)
  257. txMode                     ds.w   1        ; offset: $48 (72)
  258. txSize                     ds.w   1        ; offset: $4A (74)
  259. spExtra                     ds.l   1        ; offset: $4C (76)
  260. fgColor                     ds.l   1        ; offset: $50 (80)
  261. bkColor                     ds.l   1        ; offset: $54 (84)
  262. colrBit                     ds.w   1        ; offset: $58 (88)
  263. patStretch                 ds.w   1        ; offset: $5A (90)
  264. picSave                     ds.l   1        ; offset: $5C (92)
  265. rgnSave                     ds.l   1        ; offset: $60 (96)
  266. polySave                 ds.l   1        ; offset: $64 (100)
  267. grafProcs                 ds.l   1        ; offset: $68 (104)
  268. sizeof                     EQU *            ; size:   $6C (108)
  269.                         ENDR
  270.  
  271. ; typedef struct GrafPort     GrafPort
  272. ; typedef GrafPort             *GrafPtr
  273. ;
  274. ; *    This set of definitions "belongs" in Windows.
  275. ; *    But, there is a circularity in the headers where Windows includes Controls and
  276. ; *    Controls includes Windows. To break the circle, the information
  277. ; *    needed by Controls is moved from Windows to Quickdraw.
  278. ; typedef GrafPtr             WindowPtr
  279. ;
  280. ;    Set STRICT_WINDOWS to 1 to make sure your code 
  281. ;    doesn't access the window record directly
  282. ;
  283.     IF &TYPE('STRICT_WINDOWS') = 'UNDEFINED' THEN
  284.     STRICT_WINDOWS: SET 0
  285.     ENDIF
  286.     IF STRICT_WINDOWS  THEN
  287.     ELSE
  288. ; typedef WindowPtr         WindowRef
  289.     ENDIF
  290. ; typedef UInt16             DragConstraint
  291.  
  292. kNoConstraint                    EQU        0
  293. kVerticalConstraint                EQU        1
  294. kHorizontalConstraint            EQU        2
  295.  
  296. ;
  297. ; *    Here ends the list of things that "belong" in Windows.
  298. RGBColor                 RECORD    0
  299. red                         ds.w   1        ; offset: $0 (0)        ;magnitude of red component
  300. green                     ds.w   1        ; offset: $2 (2)        ;magnitude of green component
  301. blue                     ds.w   1        ; offset: $4 (4)        ;magnitude of blue component
  302. sizeof                     EQU *            ; size:   $6 (6)
  303.                         ENDR
  304.  
  305. ; typedef struct RGBColor     RGBColor, *RGBColorPtr, **RGBColorHdl
  306. ColorSpec                 RECORD    0
  307. value                     ds.w   1        ; offset: $0 (0)        ;index or other value
  308. rgb                         ds     RGBColor ; offset: $2 (2)        ;true color
  309. sizeof                     EQU *            ; size:   $8 (8)
  310.                         ENDR
  311.  
  312. ; typedef struct ColorSpec     ColorSpec
  313. ; typedef ColorSpec         *ColorSpecPtr
  314. ; typedef ColorSpec         CSpecArray[1]
  315. xColorSpec                 RECORD    0
  316. value                     ds.w   1        ; offset: $0 (0)        ;index or other value
  317. rgb                         ds     RGBColor ; offset: $2 (2)        ;true color
  318. xalpha                     ds.w   1        ; offset: $8 (8)
  319. sizeof                     EQU *            ; size:   $A (10)
  320.                         ENDR
  321.  
  322. ; typedef struct xColorSpec  xColorSpec
  323. ; typedef xColorSpec         *xColorSpecPtr
  324. ; typedef xColorSpec         xCSpecArray[1]
  325. ColorTable                 RECORD    0
  326. ctSeed                     ds.l   1        ; offset: $0 (0)        ;unique identifier for table
  327. ctFlags                     ds.w   1        ; offset: $4 (4)        ;high bit: 0 = PixMap; 1 = device
  328. ctSize                     ds.w   1        ; offset: $6 (6)        ;number of entries in CTTable
  329. ctTable                     ds.l   2        ; offset: $8 (8)        ;array [0..0] of ColorSpec
  330. sizeof                     EQU *            ; size:   $10 (16)
  331.                         ENDR
  332.  
  333. ; typedef struct ColorTable  ColorTable, *CTabPtr, **CTabHandle
  334. MatchRec                 RECORD    0
  335. red                         ds.w   1        ; offset: $0 (0)
  336. green                     ds.w   1        ; offset: $2 (2)
  337. blue                     ds.w   1        ; offset: $4 (4)
  338. matchData                 ds.l   1        ; offset: $6 (6)
  339. sizeof                     EQU *            ; size:   $A (10)
  340.                         ENDR
  341.  
  342. ; typedef struct MatchRec     MatchRec
  343. PixMap                     RECORD    0
  344. baseAddr                 ds.l   1        ; offset: $0 (0)        ;pointer to pixels
  345. rowBytes                 ds.w   1        ; offset: $4 (4)        ;offset to next line
  346. bounds                     ds     Rect    ; offset: $6 (6)        ;encloses bitmap
  347. pmVersion                 ds.w   1        ; offset: $E (14)        ;pixMap version number
  348. packType                 ds.w   1        ; offset: $10 (16)        ;defines packing format
  349. packSize                 ds.l   1        ; offset: $12 (18)        ;length of pixel data
  350. hRes                     ds.l   1        ; offset: $16 (22)        ;horiz. resolution (ppi)
  351. vRes                     ds.l   1        ; offset: $1A (26)        ;vert. resolution (ppi)
  352. pixelType                 ds.w   1        ; offset: $1E (30)        ;defines pixel type
  353. pixelSize                 ds.w   1        ; offset: $20 (32)        ;# bits in pixel
  354. cmpCount                 ds.w   1        ; offset: $22 (34)        ;# components in pixel
  355. cmpSize                     ds.w   1        ; offset: $24 (36)        ;# bits per component
  356. planeBytes                 ds.l   1        ; offset: $26 (38)        ;offset to next plane
  357. pmTable                     ds.l   1        ; offset: $2A (42)        ;color map for this pixMap
  358. pmReserved                 ds.l   1        ; offset: $2E (46)        ;for future use. MUST BE 0
  359. sizeof                     EQU *            ; size:   $32 (50)
  360.                         ENDR
  361.  
  362. ; typedef struct PixMap     PixMap, *PixMapPtr, **PixMapHandle
  363. PixPat                     RECORD    0
  364. patType                     ds.w   1        ; offset: $0 (0)        ;type of pattern
  365. patMap                     ds.l   1        ; offset: $2 (2)        ;the pattern's pixMap
  366. patData                     ds.l   1        ; offset: $6 (6)        ;pixmap's data
  367. patXData                 ds.l   1        ; offset: $A (10)        ;expanded Pattern data
  368. patXValid                 ds.w   1        ; offset: $E (14)        ;flags whether expanded Pattern valid
  369. patXMap                     ds.l   1        ; offset: $10 (16)        ;Handle to expanded Pattern data
  370. pat1Data                 ds     Pattern    ; offset: $14 (20)        ;old-Style pattern/RGB color
  371. sizeof                     EQU *            ; size:   $1C (28)
  372.                         ENDR
  373.  
  374. ; typedef struct PixPat     PixPat, *PixPatPtr, **PixPatHandle
  375. CCrsr                     RECORD    0
  376. crsrType                 ds.w   1        ; offset: $0 (0)        ;type of cursor
  377. crsrMap                     ds.l   1        ; offset: $2 (2)        ;the cursor's pixmap
  378. crsrData                 ds.l   1        ; offset: $6 (6)        ;cursor's data
  379. crsrXData                 ds.l   1        ; offset: $A (10)        ;expanded cursor data
  380. crsrXValid                 ds.w   1        ; offset: $E (14)        ;depth of expanded data (0 if none)
  381. crsrXHandle                 ds.l   1        ; offset: $10 (16)        ;future use
  382. crsr1Data                 ds.l   8        ; offset: $14 (20)        ;one-bit cursor
  383. crsrMask                 ds.l   8        ; offset: $34 (52)        ;cursor's mask
  384. crsrHotSpot                 ds     Point    ; offset: $54 (84)        ;cursor's hotspot
  385. crsrXTable                 ds.l   1        ; offset: $58 (88)        ;private
  386. crsrID                     ds.l   1        ; offset: $5C (92)        ;private
  387. sizeof                     EQU *            ; size:   $60 (96)
  388.                         ENDR
  389.  
  390. ; typedef struct CCrsr         CCrsr, *CCrsrPtr, **CCrsrHandle
  391.     IF OLDROUTINELOCATIONS  THEN
  392. CIcon                     RECORD    0
  393. iconPMap                 ds     PixMap    ; offset: $0 (0)        ;the icon's pixMap
  394. iconMask                 ds     BitMap    ; offset: $32 (50)        ;the icon's mask
  395. iconBMap                 ds     BitMap    ; offset: $40 (64)        ;the icon's bitMap
  396. iconData                 ds.l   1        ; offset: $4E (78)        ;the icon's data
  397. iconMaskData             ds.w   1        ; offset: $52 (82)        ;icon's mask and BitMap data
  398. sizeof                     EQU *            ; size:   $54 (84)
  399.                         ENDR
  400.  
  401. ; typedef struct CIcon         CIcon, *CIconPtr, **CIconHandle
  402.     ENDIF
  403. GammaTbl                 RECORD    0
  404. gVersion                 ds.w   1        ; offset: $0 (0)        ;gamma version number
  405. gType                     ds.w   1        ; offset: $2 (2)        ;gamma data type
  406. gFormulaSize             ds.w   1        ; offset: $4 (4)        ;Formula data size
  407. gChanCnt                 ds.w   1        ; offset: $6 (6)        ;number of channels of data
  408. gDataCnt                 ds.w   1        ; offset: $8 (8)        ;number of values/channel
  409. gDataWidth                 ds.w   1        ; offset: $A (10)        ;bits/corrected value (data packed to next larger byte size)
  410. gFormulaData             ds.w   1        ; offset: $C (12)        ;data for formulas followed by gamma values
  411. sizeof                     EQU *            ; size:   $E (14)
  412.                         ENDR
  413.  
  414. ; typedef struct GammaTbl     GammaTbl, *GammaTblPtr, **GammaTblHandle
  415. ITab                     RECORD    0
  416. iTabSeed                 ds.l   1        ; offset: $0 (0)        ;copy of CTSeed from source CTable
  417. iTabRes                     ds.w   1        ; offset: $4 (4)        ;bits/channel resolution of iTable
  418. iTTable                     ds.b   1        ; offset: $6 (6)        ;byte colortable index values
  419.                          ORG 8
  420. sizeof                     EQU *            ; size:   $8 (8)
  421.                         ENDR
  422.  
  423. ; typedef struct ITab         ITab, *ITabPtr, **ITabHandle
  424. SProcRec                 RECORD    0
  425. nxtSrch                     ds.l   1        ; offset: $0 (0)        ;SProcHndl Handle to next SProcRec
  426. srchProc                 ds.l   1        ; offset: $4 (4)        ;search procedure proc ptr
  427. sizeof                     EQU *            ; size:   $8 (8)
  428.                         ENDR
  429.  
  430. ; typedef struct SProcRec     SProcRec, *SProcPtr, **SProcHndl
  431. CProcRec                 RECORD    0
  432. nxtComp                     ds.l   1        ; offset: $0 (0)        ;CProcHndl Handle to next CProcRec
  433. compProc                 ds.l   1        ; offset: $4 (4)        ;complement procedure proc ptr
  434. sizeof                     EQU *            ; size:   $8 (8)
  435.                         ENDR
  436.  
  437. ; typedef struct CProcRec     CProcRec, *CProcPtr, **CProcHndl
  438. GDevice                 RECORD    0
  439. gdRefNum                 ds.w   1        ; offset: $0 (0)        ;driver's unit number
  440. gdID                     ds.w   1        ; offset: $2 (2)        ;client ID for search procs
  441. gdType                     ds.w   1        ; offset: $4 (4)        ;fixed/CLUT/direct
  442. gdITable                 ds.l   1        ; offset: $6 (6)        ;Handle to inverse lookup table
  443. gdResPref                 ds.w   1        ; offset: $A (10)        ;preferred resolution of GDITable
  444. gdSearchProc             ds.l   1        ; offset: $C (12)        ;search proc list head
  445. gdCompProc                 ds.l   1        ; offset: $10 (16)        ;complement proc list
  446. gdFlags                     ds.w   1        ; offset: $14 (20)        ;grafDevice flags word
  447. gdPMap                     ds.l   1        ; offset: $16 (22)        ;describing pixMap
  448. gdRefCon                 ds.l   1        ; offset: $1A (26)        ;reference value
  449. gdNextGD                 ds.l   1        ; offset: $1E (30)        ;GDHandle Handle of next gDevice
  450. gdRect                     ds     Rect    ; offset: $22 (34)        ; device's bounds in global coordinates
  451. gdMode                     ds.l   1        ; offset: $2A (42)        ;device's current mode
  452. gdCCBytes                 ds.w   1        ; offset: $2E (46)        ;depth of expanded cursor data
  453. gdCCDepth                 ds.w   1        ; offset: $30 (48)        ;depth of expanded cursor data
  454. gdCCXData                 ds.l   1        ; offset: $32 (50)        ;Handle to cursor's expanded data
  455. gdCCXMask                 ds.l   1        ; offset: $36 (54)        ;Handle to cursor's expanded mask
  456. gdReserved                 ds.l   1        ; offset: $3A (58)        ;future use. MUST BE 0
  457. sizeof                     EQU *            ; size:   $3E (62)
  458.                         ENDR
  459.  
  460. ; typedef struct GDevice     GDevice, *GDPtr, **GDHandle
  461. GrafVars                 RECORD    0
  462. rgbOpColor                 ds     RGBColor ; offset: $0 (0)        ;color for addPin  subPin and average
  463. rgbHiliteColor             ds     RGBColor ; offset: $6 (6)        ;color for hiliting
  464. pmFgColor                 ds.l   1        ; offset: $C (12)        ;palette Handle for foreground color
  465. pmFgIndex                 ds.w   1        ; offset: $10 (16)        ;index value for foreground
  466. pmBkColor                 ds.l   1        ; offset: $12 (18)        ;palette Handle for background color
  467. pmBkIndex                 ds.w   1        ; offset: $16 (22)        ;index value for background
  468. pmFlags                     ds.w   1        ; offset: $18 (24)        ;flags for Palette Manager
  469. sizeof                     EQU *            ; size:   $1A (26)
  470.                         ENDR
  471.  
  472. ; typedef struct GrafVars     GrafVars, *GVarPtr, **GVarHandle
  473. CQDProcs                 RECORD    0
  474. textProc                 ds.l   1        ; offset: $0 (0)
  475. lineProc                 ds.l   1        ; offset: $4 (4)
  476. rectProc                 ds.l   1        ; offset: $8 (8)
  477. rRectProc                 ds.l   1        ; offset: $C (12)
  478. ovalProc                 ds.l   1        ; offset: $10 (16)
  479. arcProc                     ds.l   1        ; offset: $14 (20)
  480. polyProc                 ds.l   1        ; offset: $18 (24)
  481. rgnProc                     ds.l   1        ; offset: $1C (28)
  482. bitsProc                 ds.l   1        ; offset: $20 (32)
  483. commentProc                 ds.l   1        ; offset: $24 (36)
  484. txMeasProc                 ds.l   1        ; offset: $28 (40)
  485. getPicProc                 ds.l   1        ; offset: $2C (44)
  486. putPicProc                 ds.l   1        ; offset: $30 (48)
  487. opcodeProc                 ds.l   1        ; offset: $34 (52)        ;fields added to QDProcs
  488. newProc1                 ds.l   1        ; offset: $38 (56)
  489. newProc2                 ds.l   1        ; offset: $3C (60)
  490. newProc3                 ds.l   1        ; offset: $40 (64)
  491. newProc4                 ds.l   1        ; offset: $44 (68)
  492. newProc5                 ds.l   1        ; offset: $48 (72)
  493. newProc6                 ds.l   1        ; offset: $4C (76)
  494. sizeof                     EQU *            ; size:   $50 (80)
  495.                         ENDR
  496.  
  497. ; typedef struct CQDProcs     CQDProcs, *CQDProcsPtr
  498. CGrafPort                 RECORD    0
  499. device                     ds.w   1        ; offset: $0 (0)
  500. portPixMap                 ds.l   1        ; offset: $2 (2)        ;port's pixel map
  501. portVersion                 ds.w   1        ; offset: $6 (6)        ;high 2 bits always set
  502. grafVars                 ds.l   1        ; offset: $8 (8)        ;Handle to more fields
  503. chExtra                     ds.w   1        ; offset: $C (12)        ;character extra
  504. pnLocHFrac                 ds.w   1        ; offset: $E (14)        ;pen fraction
  505. portRect                 ds     Rect    ; offset: $10 (16)
  506. visRgn                     ds.l   1        ; offset: $18 (24)
  507. clipRgn                     ds.l   1        ; offset: $1C (28)
  508. bkPixPat                 ds.l   1        ; offset: $20 (32)        ;background pattern
  509. rgbFgColor                 ds     RGBColor ; offset: $24 (36)        ;RGB components of fg
  510. rgbBkColor                 ds     RGBColor ; offset: $2A (42)        ;RGB components of bk
  511. pnLoc                     ds     Point    ; offset: $30 (48)
  512. pnSize                     ds     Point    ; offset: $34 (52)
  513. pnMode                     ds.w   1        ; offset: $38 (56)
  514. pnPixPat                 ds.l   1        ; offset: $3A (58)        ;pen's pattern
  515. fillPixPat                 ds.l   1        ; offset: $3E (62)        ;fill pattern
  516. pnVis                     ds.w   1        ; offset: $42 (66)
  517. txFont                     ds.w   1        ; offset: $44 (68)
  518. txFace                     ds.b   1        ; offset: $46 (70)        ;txFace is unpacked byte  push as short
  519. filler                     ds.b   1        ; offset: $47 (71)
  520. txMode                     ds.w   1        ; offset: $48 (72)
  521. txSize                     ds.w   1        ; offset: $4A (74)
  522. spExtra                     ds.l   1        ; offset: $4C (76)
  523. fgColor                     ds.l   1        ; offset: $50 (80)
  524. bkColor                     ds.l   1        ; offset: $54 (84)
  525. colrBit                     ds.w   1        ; offset: $58 (88)
  526. patStretch                 ds.w   1        ; offset: $5A (90)
  527. picSave                     ds.l   1        ; offset: $5C (92)
  528. rgnSave                     ds.l   1        ; offset: $60 (96)
  529. polySave                 ds.l   1        ; offset: $64 (100)
  530. grafProcs                 ds.l   1        ; offset: $68 (104)
  531. sizeof                     EQU *            ; size:   $6C (108)
  532.                         ENDR
  533.  
  534. ; typedef struct CGrafPort     CGrafPort, *CGrafPtr
  535. ; typedef CGrafPtr             CWindowPtr
  536. ReqListRec                 RECORD    0
  537. reqLSize                 ds.w   1        ; offset: $0 (0)        ;request list size
  538. reqLData                 ds.w   1        ; offset: $2 (2)        ;request list data
  539. sizeof                     EQU *            ; size:   $4 (4)
  540.                         ENDR
  541.  
  542. ; typedef struct ReqListRec  ReqListRec
  543. OpenCPicParams             RECORD    0
  544. srcRect                     ds     Rect    ; offset: $0 (0)
  545. hRes                     ds.l   1        ; offset: $8 (8)
  546. vRes                     ds.l   1        ; offset: $C (12)
  547. version                     ds.w   1        ; offset: $10 (16)
  548. reserved1                 ds.w   1        ; offset: $12 (18)
  549. reserved2                 ds.l   1        ; offset: $14 (20)
  550. sizeof                     EQU *            ; size:   $18 (24)
  551.                         ENDR
  552.  
  553. ; typedef struct OpenCPicParams  OpenCPicParams
  554. CursorImageRec             RECORD    0
  555. majorVersion             ds.w   1        ; offset: $0 (0)
  556. minorVersion             ds.w   1        ; offset: $2 (2)
  557. cursorPixMap             ds.l   1        ; offset: $4 (4)
  558. cursorBitMask             ds.l   1        ; offset: $8 (8)
  559. sizeof                     EQU *            ; size:   $C (12)
  560.                         ENDR
  561.  
  562. ; typedef struct CursorImageRec  CursorImageRec, *CursorImagePtr
  563. QDGlobals                 RECORD    0
  564. privates                 ds.b   76        ; offset: $0 (0)
  565. randSeed                 ds.l   1        ; offset: $4C (76)
  566. screenBits                 ds     BitMap    ; offset: $50 (80)
  567. arrow                     ds     Cursor    ; offset: $5E (94)
  568. dkGray                     ds     Pattern    ; offset: $A2 (162)
  569. ltGray                     ds     Pattern    ; offset: $AA (170)
  570. gray                     ds     Pattern    ; offset: $B2 (178)
  571. black                     ds     Pattern    ; offset: $BA (186)
  572. white                     ds     Pattern    ; offset: $C2 (194)
  573. thePort                     ds.l   1        ; offset: $CA (202)
  574. sizeof                     EQU *            ; size:   $CE (206)
  575.                         ENDR
  576.  
  577. ; typedef struct QDGlobals     QDGlobals, *QDGlobalsPtr, **QDGlobalsHdl
  578. ;
  579. ; pascal void InitGraf(void *globalPtr)
  580. ;
  581.     IF ¬ GENERATINGCFM THEN
  582.         _InitGraf:    OPWORD    $A86E
  583.     ELSE
  584.         IMPORT_CFM_FUNCTION    InitGraf
  585.     ENDIF
  586.  
  587. ;
  588. ; pascal void OpenPort(GrafPtr port)
  589. ;
  590.     IF ¬ GENERATINGCFM THEN
  591.         _OpenPort:    OPWORD    $A86F
  592.     ELSE
  593.         IMPORT_CFM_FUNCTION    OpenPort
  594.     ENDIF
  595.  
  596. ;
  597. ; pascal void InitPort(GrafPtr port)
  598. ;
  599.     IF ¬ GENERATINGCFM THEN
  600.         _InitPort:    OPWORD    $A86D
  601.     ELSE
  602.         IMPORT_CFM_FUNCTION    InitPort
  603.     ENDIF
  604.  
  605. ;
  606. ; pascal void ClosePort(GrafPtr port)
  607. ;
  608.     IF ¬ GENERATINGCFM THEN
  609.         _ClosePort:    OPWORD    $A87D
  610.     ELSE
  611.         IMPORT_CFM_FUNCTION    ClosePort
  612.     ENDIF
  613.  
  614. ;
  615. ; pascal void SetPort(GrafPtr port)
  616. ;
  617.     IF ¬ GENERATINGCFM THEN
  618.         _SetPort:    OPWORD    $A873
  619.     ELSE
  620.         IMPORT_CFM_FUNCTION    SetPort
  621.     ENDIF
  622.  
  623. ;
  624. ; pascal void GetPort(GrafPtr *port)
  625. ;
  626.     IF ¬ GENERATINGCFM THEN
  627.         _GetPort:    OPWORD    $A874
  628.     ELSE
  629.         IMPORT_CFM_FUNCTION    GetPort
  630.     ENDIF
  631.  
  632. ;
  633. ; pascal void GrafDevice(short device)
  634. ;
  635.     IF ¬ GENERATINGCFM THEN
  636.         _GrafDevice:    OPWORD    $A872
  637.     ELSE
  638.         IMPORT_CFM_FUNCTION    GrafDevice
  639.     ENDIF
  640.  
  641. ;
  642. ; pascal void SetPortBits(const BitMap *bm)
  643. ;
  644.     IF ¬ GENERATINGCFM THEN
  645.         _SetPortBits:    OPWORD    $A875
  646.     ELSE
  647.         IMPORT_CFM_FUNCTION    SetPortBits
  648.     ENDIF
  649.  
  650. ;
  651. ; pascal void PortSize(short width, short height)
  652. ;
  653.     IF ¬ GENERATINGCFM THEN
  654.         _PortSize:    OPWORD    $A876
  655.     ELSE
  656.         IMPORT_CFM_FUNCTION    PortSize
  657.     ENDIF
  658.  
  659. ;
  660. ; pascal void MovePortTo(short leftGlobal, short topGlobal)
  661. ;
  662.     IF ¬ GENERATINGCFM THEN
  663.         _MovePortTo:    OPWORD    $A877
  664.     ELSE
  665.         IMPORT_CFM_FUNCTION    MovePortTo
  666.     ENDIF
  667.  
  668. ;
  669. ; pascal void SetOrigin(short h, short v)
  670. ;
  671.     IF ¬ GENERATINGCFM THEN
  672.         _SetOrigin:    OPWORD    $A878
  673.     ELSE
  674.         IMPORT_CFM_FUNCTION    SetOrigin
  675.     ENDIF
  676.  
  677. ;
  678. ; pascal void SetClip(RgnHandle rgn)
  679. ;
  680.     IF ¬ GENERATINGCFM THEN
  681.         _SetClip:    OPWORD    $A879
  682.     ELSE
  683.         IMPORT_CFM_FUNCTION    SetClip
  684.     ENDIF
  685.  
  686. ;
  687. ; pascal void GetClip(RgnHandle rgn)
  688. ;
  689.     IF ¬ GENERATINGCFM THEN
  690.         _GetClip:    OPWORD    $A87A
  691.     ELSE
  692.         IMPORT_CFM_FUNCTION    GetClip
  693.     ENDIF
  694.  
  695. ;
  696. ; pascal void ClipRect(const Rect *r)
  697. ;
  698.     IF ¬ GENERATINGCFM THEN
  699.         _ClipRect:    OPWORD    $A87B
  700.     ELSE
  701.         IMPORT_CFM_FUNCTION    ClipRect
  702.     ENDIF
  703.  
  704. ;
  705. ; pascal void BackPat(const Pattern *pat)
  706. ;
  707.     IF ¬ GENERATINGCFM THEN
  708.         _BackPat:    OPWORD    $A87C
  709.     ELSE
  710.         IMPORT_CFM_FUNCTION    BackPat
  711.     ENDIF
  712.  
  713. ;
  714. ; pascal void InitCursor(void)
  715. ;
  716.     IF ¬ GENERATINGCFM THEN
  717.         _InitCursor:    OPWORD    $A850
  718.     ELSE
  719.         IMPORT_CFM_FUNCTION    InitCursor
  720.     ENDIF
  721.  
  722. ;
  723. ; pascal void SetCursor(const Cursor *crsr)
  724. ;
  725.     IF ¬ GENERATINGCFM THEN
  726.         _SetCursor:    OPWORD    $A851
  727.     ELSE
  728.         IMPORT_CFM_FUNCTION    SetCursor
  729.     ENDIF
  730.  
  731. ;
  732. ; pascal void HideCursor(void)
  733. ;
  734.     IF ¬ GENERATINGCFM THEN
  735.         _HideCursor:    OPWORD    $A852
  736.     ELSE
  737.         IMPORT_CFM_FUNCTION    HideCursor
  738.     ENDIF
  739.  
  740. ;
  741. ; pascal void ShowCursor(void)
  742. ;
  743.     IF ¬ GENERATINGCFM THEN
  744.         _ShowCursor:    OPWORD    $A853
  745.     ELSE
  746.         IMPORT_CFM_FUNCTION    ShowCursor
  747.     ENDIF
  748.  
  749. ;
  750. ; pascal void ObscureCursor(void)
  751. ;
  752.     IF ¬ GENERATINGCFM THEN
  753.         _ObscureCursor:    OPWORD    $A856
  754.     ELSE
  755.         IMPORT_CFM_FUNCTION    ObscureCursor
  756.     ENDIF
  757.  
  758. ;
  759. ; pascal void HidePen(void)
  760. ;
  761.     IF ¬ GENERATINGCFM THEN
  762.         _HidePen:    OPWORD    $A896
  763.     ELSE
  764.         IMPORT_CFM_FUNCTION    HidePen
  765.     ENDIF
  766.  
  767. ;
  768. ; pascal void ShowPen(void)
  769. ;
  770.     IF ¬ GENERATINGCFM THEN
  771.         _ShowPen:    OPWORD    $A897
  772.     ELSE
  773.         IMPORT_CFM_FUNCTION    ShowPen
  774.     ENDIF
  775.  
  776. ;
  777. ; pascal void GetPen(Point *pt)
  778. ;
  779.     IF ¬ GENERATINGCFM THEN
  780.         _GetPen:    OPWORD    $A89A
  781.     ELSE
  782.         IMPORT_CFM_FUNCTION    GetPen
  783.     ENDIF
  784.  
  785. ;
  786. ; pascal void GetPenState(PenState *pnState)
  787. ;
  788.     IF ¬ GENERATINGCFM THEN
  789.         _GetPenState:    OPWORD    $A898
  790.     ELSE
  791.         IMPORT_CFM_FUNCTION    GetPenState
  792.     ENDIF
  793.  
  794. ;
  795. ; pascal void SetPenState(const PenState *pnState)
  796. ;
  797.     IF ¬ GENERATINGCFM THEN
  798.         _SetPenState:    OPWORD    $A899
  799.     ELSE
  800.         IMPORT_CFM_FUNCTION    SetPenState
  801.     ENDIF
  802.  
  803. ;
  804. ; pascal void PenSize(short width, short height)
  805. ;
  806.     IF ¬ GENERATINGCFM THEN
  807.         _PenSize:    OPWORD    $A89B
  808.     ELSE
  809.         IMPORT_CFM_FUNCTION    PenSize
  810.     ENDIF
  811.  
  812. ;
  813. ; pascal void PenMode(short mode)
  814. ;
  815.     IF ¬ GENERATINGCFM THEN
  816.         _PenMode:    OPWORD    $A89C
  817.     ELSE
  818.         IMPORT_CFM_FUNCTION    PenMode
  819.     ENDIF
  820.  
  821. ;
  822. ; pascal void PenPat(const Pattern *pat)
  823. ;
  824.     IF ¬ GENERATINGCFM THEN
  825.         _PenPat:    OPWORD    $A89D
  826.     ELSE
  827.         IMPORT_CFM_FUNCTION    PenPat
  828.     ENDIF
  829.  
  830. ;
  831. ; pascal void PenNormal(void)
  832. ;
  833.     IF ¬ GENERATINGCFM THEN
  834.         _PenNormal:    OPWORD    $A89E
  835.     ELSE
  836.         IMPORT_CFM_FUNCTION    PenNormal
  837.     ENDIF
  838.  
  839. ;
  840. ; pascal void MoveTo(short h, short v)
  841. ;
  842.     IF ¬ GENERATINGCFM THEN
  843.         _MoveTo:    OPWORD    $A893
  844.     ELSE
  845.         IMPORT_CFM_FUNCTION    MoveTo
  846.     ENDIF
  847.  
  848. ;
  849. ; pascal void Move(short dh, short dv)
  850. ;
  851.     IF ¬ GENERATINGCFM THEN
  852.         _Move:    OPWORD    $A894
  853.     ELSE
  854.         IMPORT_CFM_FUNCTION    Move
  855.     ENDIF
  856.  
  857. ;
  858. ; pascal void LineTo(short h, short v)
  859. ;
  860.     IF ¬ GENERATINGCFM THEN
  861.         _LineTo:    OPWORD    $A891
  862.     ELSE
  863.         IMPORT_CFM_FUNCTION    LineTo
  864.     ENDIF
  865.  
  866. ;
  867. ; pascal void Line(short dh, short dv)
  868. ;
  869.     IF ¬ GENERATINGCFM THEN
  870.         _Line:    OPWORD    $A892
  871.     ELSE
  872.         IMPORT_CFM_FUNCTION    Line
  873.     ENDIF
  874.  
  875. ;
  876. ; pascal void ForeColor(long color)
  877. ;
  878.     IF ¬ GENERATINGCFM THEN
  879.         _ForeColor:    OPWORD    $A862
  880.     ELSE
  881.         IMPORT_CFM_FUNCTION    ForeColor
  882.     ENDIF
  883.  
  884. ;
  885. ; pascal void BackColor(long color)
  886. ;
  887.     IF ¬ GENERATINGCFM THEN
  888.         _BackColor:    OPWORD    $A863
  889.     ELSE
  890.         IMPORT_CFM_FUNCTION    BackColor
  891.     ENDIF
  892.  
  893. ;
  894. ; pascal void ColorBit(short whichBit)
  895. ;
  896.     IF ¬ GENERATINGCFM THEN
  897.         _ColorBit:    OPWORD    $A864
  898.     ELSE
  899.         IMPORT_CFM_FUNCTION    ColorBit
  900.     ENDIF
  901.  
  902. ;
  903. ; pascal void SetRect(Rect *r, short left, short top, short right, short bottom)
  904. ;
  905.     IF ¬ GENERATINGCFM THEN
  906.         _SetRect:    OPWORD    $A8A7
  907.     ELSE
  908.         IMPORT_CFM_FUNCTION    SetRect
  909.     ENDIF
  910.  
  911. ;
  912. ; pascal void OffsetRect(Rect *r, short dh, short dv)
  913. ;
  914.     IF ¬ GENERATINGCFM THEN
  915.         _OffsetRect:    OPWORD    $A8A8
  916.     ELSE
  917.         IMPORT_CFM_FUNCTION    OffsetRect
  918.     ENDIF
  919.  
  920. ;
  921. ; pascal void InsetRect(Rect *r, short dh, short dv)
  922. ;
  923.     IF ¬ GENERATINGCFM THEN
  924.         _InsetRect:    OPWORD    $A8A9
  925.     ELSE
  926.         IMPORT_CFM_FUNCTION    InsetRect
  927.     ENDIF
  928.  
  929. ;
  930. ; pascal Boolean SectRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  931. ;
  932.     IF ¬ GENERATINGCFM THEN
  933.         _SectRect:    OPWORD    $A8AA
  934.     ELSE
  935.         IMPORT_CFM_FUNCTION    SectRect
  936.     ENDIF
  937.  
  938. ;
  939. ; pascal void UnionRect(const Rect *src1, const Rect *src2, Rect *dstRect)
  940. ;
  941.     IF ¬ GENERATINGCFM THEN
  942.         _UnionRect:    OPWORD    $A8AB
  943.     ELSE
  944.         IMPORT_CFM_FUNCTION    UnionRect
  945.     ENDIF
  946.  
  947. ;
  948. ; pascal Boolean EqualRect(const Rect *rect1, const Rect *rect2)
  949. ;
  950.     IF ¬ GENERATINGCFM THEN
  951.         _EqualRect:    OPWORD    $A8A6
  952.     ELSE
  953.         IMPORT_CFM_FUNCTION    EqualRect
  954.     ENDIF
  955.  
  956. ;
  957. ; pascal Boolean EmptyRect(const Rect *r)
  958. ;
  959.     IF ¬ GENERATINGCFM THEN
  960.         _EmptyRect:    OPWORD    $A8AE
  961.     ELSE
  962.         IMPORT_CFM_FUNCTION    EmptyRect
  963.     ENDIF
  964.  
  965. ;
  966. ; pascal void FrameRect(const Rect *r)
  967. ;
  968.     IF ¬ GENERATINGCFM THEN
  969.         _FrameRect:    OPWORD    $A8A1
  970.     ELSE
  971.         IMPORT_CFM_FUNCTION    FrameRect
  972.     ENDIF
  973.  
  974. ;
  975. ; pascal void PaintRect(const Rect *r)
  976. ;
  977.     IF ¬ GENERATINGCFM THEN
  978.         _PaintRect:    OPWORD    $A8A2
  979.     ELSE
  980.         IMPORT_CFM_FUNCTION    PaintRect
  981.     ENDIF
  982.  
  983. ;
  984. ; pascal void EraseRect(const Rect *r)
  985. ;
  986.     IF ¬ GENERATINGCFM THEN
  987.         _EraseRect:    OPWORD    $A8A3
  988.     ELSE
  989.         IMPORT_CFM_FUNCTION    EraseRect
  990.     ENDIF
  991.  
  992. ;
  993. ; pascal void InvertRect(const Rect *r)
  994. ;
  995.     IF ¬ GENERATINGCFM THEN
  996.         _InvertRect:    OPWORD    $A8A4
  997.     ELSE
  998.         IMPORT_CFM_FUNCTION    InvertRect
  999.     ENDIF
  1000.  
  1001. ;
  1002. ; pascal void FillRect(const Rect *r, const Pattern *pat)
  1003. ;
  1004.     IF ¬ GENERATINGCFM THEN
  1005.         _FillRect:    OPWORD    $A8A5
  1006.     ELSE
  1007.         IMPORT_CFM_FUNCTION    FillRect
  1008.     ENDIF
  1009.  
  1010. ;
  1011. ; pascal void FrameOval(const Rect *r)
  1012. ;
  1013.     IF ¬ GENERATINGCFM THEN
  1014.         _FrameOval:    OPWORD    $A8B7
  1015.     ELSE
  1016.         IMPORT_CFM_FUNCTION    FrameOval
  1017.     ENDIF
  1018.  
  1019. ;
  1020. ; pascal void PaintOval(const Rect *r)
  1021. ;
  1022.     IF ¬ GENERATINGCFM THEN
  1023.         _PaintOval:    OPWORD    $A8B8
  1024.     ELSE
  1025.         IMPORT_CFM_FUNCTION    PaintOval
  1026.     ENDIF
  1027.  
  1028. ;
  1029. ; pascal void EraseOval(const Rect *r)
  1030. ;
  1031.     IF ¬ GENERATINGCFM THEN
  1032.         _EraseOval:    OPWORD    $A8B9
  1033.     ELSE
  1034.         IMPORT_CFM_FUNCTION    EraseOval
  1035.     ENDIF
  1036.  
  1037. ;
  1038. ; pascal void InvertOval(const Rect *r)
  1039. ;
  1040.     IF ¬ GENERATINGCFM THEN
  1041.         _InvertOval:    OPWORD    $A8BA
  1042.     ELSE
  1043.         IMPORT_CFM_FUNCTION    InvertOval
  1044.     ENDIF
  1045.  
  1046. ;
  1047. ; pascal void FillOval(const Rect *r, const Pattern *pat)
  1048. ;
  1049.     IF ¬ GENERATINGCFM THEN
  1050.         _FillOval:    OPWORD    $A8BB
  1051.     ELSE
  1052.         IMPORT_CFM_FUNCTION    FillOval
  1053.     ENDIF
  1054.  
  1055. ;
  1056. ; pascal void FrameRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1057. ;
  1058.     IF ¬ GENERATINGCFM THEN
  1059.         _FrameRoundRect:    OPWORD    $A8B0
  1060.     ELSE
  1061.         IMPORT_CFM_FUNCTION    FrameRoundRect
  1062.     ENDIF
  1063.  
  1064. ;
  1065. ; pascal void PaintRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1066. ;
  1067.     IF ¬ GENERATINGCFM THEN
  1068.         _PaintRoundRect:    OPWORD    $A8B1
  1069.     ELSE
  1070.         IMPORT_CFM_FUNCTION    PaintRoundRect
  1071.     ENDIF
  1072.  
  1073. ;
  1074. ; pascal void EraseRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1075. ;
  1076.     IF ¬ GENERATINGCFM THEN
  1077.         _EraseRoundRect:    OPWORD    $A8B2
  1078.     ELSE
  1079.         IMPORT_CFM_FUNCTION    EraseRoundRect
  1080.     ENDIF
  1081.  
  1082. ;
  1083. ; pascal void InvertRoundRect(const Rect *r, short ovalWidth, short ovalHeight)
  1084. ;
  1085.     IF ¬ GENERATINGCFM THEN
  1086.         _InvertRoundRect:    OPWORD    $A8B3
  1087.     ELSE
  1088.         IMPORT_CFM_FUNCTION    InvertRoundRect
  1089.     ENDIF
  1090.  
  1091. ;
  1092. ; pascal void FillRoundRect(const Rect *r, short ovalWidth, short ovalHeight, const Pattern *pat)
  1093. ;
  1094.     IF ¬ GENERATINGCFM THEN
  1095.         _FillRoundRect:    OPWORD    $A8B4
  1096.     ELSE
  1097.         IMPORT_CFM_FUNCTION    FillRoundRect
  1098.     ENDIF
  1099.  
  1100. ;
  1101. ; pascal void FrameArc(const Rect *r, short startAngle, short arcAngle)
  1102. ;
  1103.     IF ¬ GENERATINGCFM THEN
  1104.         _FrameArc:    OPWORD    $A8BE
  1105.     ELSE
  1106.         IMPORT_CFM_FUNCTION    FrameArc
  1107.     ENDIF
  1108.  
  1109. ;
  1110. ; pascal void PaintArc(const Rect *r, short startAngle, short arcAngle)
  1111. ;
  1112.     IF ¬ GENERATINGCFM THEN
  1113.         _PaintArc:    OPWORD    $A8BF
  1114.     ELSE
  1115.         IMPORT_CFM_FUNCTION    PaintArc
  1116.     ENDIF
  1117.  
  1118. ;
  1119. ; pascal void EraseArc(const Rect *r, short startAngle, short arcAngle)
  1120. ;
  1121.     IF ¬ GENERATINGCFM THEN
  1122.         _EraseArc:    OPWORD    $A8C0
  1123.     ELSE
  1124.         IMPORT_CFM_FUNCTION    EraseArc
  1125.     ENDIF
  1126.  
  1127. ;
  1128. ; pascal void InvertArc(const Rect *r, short startAngle, short arcAngle)
  1129. ;
  1130.     IF ¬ GENERATINGCFM THEN
  1131.         _InvertArc:    OPWORD    $A8C1
  1132.     ELSE
  1133.         IMPORT_CFM_FUNCTION    InvertArc
  1134.     ENDIF
  1135.  
  1136. ;
  1137. ; pascal void FillArc(const Rect *r, short startAngle, short arcAngle, const Pattern *pat)
  1138. ;
  1139.     IF ¬ GENERATINGCFM THEN
  1140.         _FillArc:    OPWORD    $A8C2
  1141.     ELSE
  1142.         IMPORT_CFM_FUNCTION    FillArc
  1143.     ENDIF
  1144.  
  1145. ;
  1146. ; pascal RgnHandle NewRgn(void)
  1147. ;
  1148.     IF ¬ GENERATINGCFM THEN
  1149.         _NewRgn:    OPWORD    $A8D8
  1150.     ELSE
  1151.         IMPORT_CFM_FUNCTION    NewRgn
  1152.     ENDIF
  1153.  
  1154. ;
  1155. ; pascal void OpenRgn(void)
  1156. ;
  1157.     IF ¬ GENERATINGCFM THEN
  1158.         _OpenRgn:    OPWORD    $A8DA
  1159.     ELSE
  1160.         IMPORT_CFM_FUNCTION    OpenRgn
  1161.     ENDIF
  1162.  
  1163. ;
  1164. ; pascal void CloseRgn(RgnHandle dstRgn)
  1165. ;
  1166.     IF ¬ GENERATINGCFM THEN
  1167.         _CloseRgn:    OPWORD    $A8DB
  1168.     ELSE
  1169.         IMPORT_CFM_FUNCTION    CloseRgn
  1170.     ENDIF
  1171.  
  1172.     IF ¬ SystemSevenOrLater  THEN
  1173. ;
  1174. ; pascal OSErr BitMapToRegionGlue(RgnHandle region, const BitMap *bMap)
  1175. ;
  1176.     IF GENERATINGCFM THEN
  1177.         IMPORT_CFM_FUNCTION    BitMapToRegionGlue
  1178.     ENDIF
  1179.  
  1180.     ENDIF
  1181. ;
  1182. ; pascal OSErr BitMapToRegion(RgnHandle region, const BitMap *bMap)
  1183. ;
  1184.     IF ¬ GENERATINGCFM THEN
  1185.         _BitMapToRegion:    OPWORD    $A8D7
  1186.     ELSE
  1187.         IMPORT_CFM_FUNCTION    BitMapToRegion
  1188.     ENDIF
  1189.  
  1190. ;
  1191. ; pascal void DisposeRgn(RgnHandle rgn)
  1192. ;
  1193.     IF ¬ GENERATINGCFM THEN
  1194.         _DisposeRgn:    OPWORD    $A8D9
  1195.     ELSE
  1196.         IMPORT_CFM_FUNCTION    DisposeRgn
  1197.     ENDIF
  1198.  
  1199. ;
  1200. ; pascal void CopyRgn(RgnHandle srcRgn, RgnHandle dstRgn)
  1201. ;
  1202.     IF ¬ GENERATINGCFM THEN
  1203.         _CopyRgn:    OPWORD    $A8DC
  1204.     ELSE
  1205.         IMPORT_CFM_FUNCTION    CopyRgn
  1206.     ENDIF
  1207.  
  1208. ;
  1209. ; pascal void SetEmptyRgn(RgnHandle rgn)
  1210. ;
  1211.     IF ¬ GENERATINGCFM THEN
  1212.         _SetEmptyRgn:    OPWORD    $A8DD
  1213.     ELSE
  1214.         IMPORT_CFM_FUNCTION    SetEmptyRgn
  1215.     ENDIF
  1216.  
  1217. ;
  1218. ; pascal void SetRectRgn(RgnHandle rgn, short left, short top, short right, short bottom)
  1219. ;
  1220.     IF ¬ GENERATINGCFM THEN
  1221.         _SetRectRgn:    OPWORD    $A8DE
  1222.     ELSE
  1223.         IMPORT_CFM_FUNCTION    SetRectRgn
  1224.     ENDIF
  1225.  
  1226. ;
  1227. ; pascal void RectRgn(RgnHandle rgn, const Rect *r)
  1228. ;
  1229.     IF ¬ GENERATINGCFM THEN
  1230.         _RectRgn:    OPWORD    $A8DF
  1231.     ELSE
  1232.         IMPORT_CFM_FUNCTION    RectRgn
  1233.     ENDIF
  1234.  
  1235. ;
  1236. ; pascal void OffsetRgn(RgnHandle rgn, short dh, short dv)
  1237. ;
  1238.     IF ¬ GENERATINGCFM THEN
  1239.         _OffsetRgn:    OPWORD    $A8E0
  1240.     ELSE
  1241.         IMPORT_CFM_FUNCTION    OffsetRgn
  1242.     ENDIF
  1243.  
  1244. ;
  1245. ; pascal void InsetRgn(RgnHandle rgn, short dh, short dv)
  1246. ;
  1247.     IF ¬ GENERATINGCFM THEN
  1248.         _InsetRgn:    OPWORD    $A8E1
  1249.     ELSE
  1250.         IMPORT_CFM_FUNCTION    InsetRgn
  1251.     ENDIF
  1252.  
  1253. ;
  1254. ; pascal void SectRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1255. ;
  1256.     IF ¬ GENERATINGCFM THEN
  1257.         _SectRgn:    OPWORD    $A8E4
  1258.     ELSE
  1259.         IMPORT_CFM_FUNCTION    SectRgn
  1260.     ENDIF
  1261.  
  1262. ;
  1263. ; pascal void UnionRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1264. ;
  1265.     IF ¬ GENERATINGCFM THEN
  1266.         _UnionRgn:    OPWORD    $A8E5
  1267.     ELSE
  1268.         IMPORT_CFM_FUNCTION    UnionRgn
  1269.     ENDIF
  1270.  
  1271. ;
  1272. ; pascal void DiffRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1273. ;
  1274.     IF ¬ GENERATINGCFM THEN
  1275.         _DiffRgn:    OPWORD    $A8E6
  1276.     ELSE
  1277.         IMPORT_CFM_FUNCTION    DiffRgn
  1278.     ENDIF
  1279.  
  1280. ;
  1281. ; pascal void XorRgn(RgnHandle srcRgnA, RgnHandle srcRgnB, RgnHandle dstRgn)
  1282. ;
  1283.     IF ¬ GENERATINGCFM THEN
  1284.         _XorRgn:    OPWORD    $A8E7
  1285.     ELSE
  1286.         IMPORT_CFM_FUNCTION    XorRgn
  1287.     ENDIF
  1288.  
  1289. ;
  1290. ; pascal Boolean RectInRgn(const Rect *r, RgnHandle rgn)
  1291. ;
  1292.     IF ¬ GENERATINGCFM THEN
  1293.         _RectInRgn:    OPWORD    $A8E9
  1294.     ELSE
  1295.         IMPORT_CFM_FUNCTION    RectInRgn
  1296.     ENDIF
  1297.  
  1298. ;
  1299. ; pascal Boolean EqualRgn(RgnHandle rgnA, RgnHandle rgnB)
  1300. ;
  1301.     IF ¬ GENERATINGCFM THEN
  1302.         _EqualRgn:    OPWORD    $A8E3
  1303.     ELSE
  1304.         IMPORT_CFM_FUNCTION    EqualRgn
  1305.     ENDIF
  1306.  
  1307. ;
  1308. ; pascal Boolean EmptyRgn(RgnHandle rgn)
  1309. ;
  1310.     IF ¬ GENERATINGCFM THEN
  1311.         _EmptyRgn:    OPWORD    $A8E2
  1312.     ELSE
  1313.         IMPORT_CFM_FUNCTION    EmptyRgn
  1314.     ENDIF
  1315.  
  1316. ;
  1317. ; pascal void FrameRgn(RgnHandle rgn)
  1318. ;
  1319.     IF ¬ GENERATINGCFM THEN
  1320.         _FrameRgn:    OPWORD    $A8D2
  1321.     ELSE
  1322.         IMPORT_CFM_FUNCTION    FrameRgn
  1323.     ENDIF
  1324.  
  1325. ;
  1326. ; pascal void PaintRgn(RgnHandle rgn)
  1327. ;
  1328.     IF ¬ GENERATINGCFM THEN
  1329.         _PaintRgn:    OPWORD    $A8D3
  1330.     ELSE
  1331.         IMPORT_CFM_FUNCTION    PaintRgn
  1332.     ENDIF
  1333.  
  1334. ;
  1335. ; pascal void EraseRgn(RgnHandle rgn)
  1336. ;
  1337.     IF ¬ GENERATINGCFM THEN
  1338.         _EraseRgn:    OPWORD    $A8D4
  1339.     ELSE
  1340.         IMPORT_CFM_FUNCTION    EraseRgn
  1341.     ENDIF
  1342.  
  1343. ;
  1344. ; pascal void InvertRgn(RgnHandle rgn)
  1345. ;
  1346.     IF ¬ GENERATINGCFM THEN
  1347.         _InvertRgn:    OPWORD    $A8D5
  1348.     ELSE
  1349.         IMPORT_CFM_FUNCTION    InvertRgn
  1350.     ENDIF
  1351.  
  1352. ;
  1353. ; pascal void FillRgn(RgnHandle rgn, const Pattern *pat)
  1354. ;
  1355.     IF ¬ GENERATINGCFM THEN
  1356.         _FillRgn:    OPWORD    $A8D6
  1357.     ELSE
  1358.         IMPORT_CFM_FUNCTION    FillRgn
  1359.     ENDIF
  1360.  
  1361. ;
  1362. ; pascal void ScrollRect(const Rect *r, short dh, short dv, RgnHandle updateRgn)
  1363. ;
  1364.     IF ¬ GENERATINGCFM THEN
  1365.         _ScrollRect:    OPWORD    $A8EF
  1366.     ELSE
  1367.         IMPORT_CFM_FUNCTION    ScrollRect
  1368.     ENDIF
  1369.  
  1370. ;
  1371. ; pascal void CopyBits(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1372. ;
  1373.     IF ¬ GENERATINGCFM THEN
  1374.         _CopyBits:    OPWORD    $A8EC
  1375.     ELSE
  1376.         IMPORT_CFM_FUNCTION    CopyBits
  1377.     ENDIF
  1378.  
  1379. ;
  1380. ; pascal void SeedFill(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words, short seedH, short seedV)
  1381. ;
  1382.     IF ¬ GENERATINGCFM THEN
  1383.         _SeedFill:    OPWORD    $A839
  1384.     ELSE
  1385.         IMPORT_CFM_FUNCTION    SeedFill
  1386.     ENDIF
  1387.  
  1388. ;
  1389. ; pascal void CalcMask(const void *srcPtr, void *dstPtr, short srcRow, short dstRow, short height, short words)
  1390. ;
  1391.     IF ¬ GENERATINGCFM THEN
  1392.         _CalcMask:    OPWORD    $A838
  1393.     ELSE
  1394.         IMPORT_CFM_FUNCTION    CalcMask
  1395.     ENDIF
  1396.  
  1397. ;
  1398. ; pascal void CopyMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect)
  1399. ;
  1400.     IF ¬ GENERATINGCFM THEN
  1401.         _CopyMask:    OPWORD    $A817
  1402.     ELSE
  1403.         IMPORT_CFM_FUNCTION    CopyMask
  1404.     ENDIF
  1405.  
  1406. ;
  1407. ; pascal PicHandle OpenPicture(const Rect *picFrame)
  1408. ;
  1409.     IF ¬ GENERATINGCFM THEN
  1410.         _OpenPicture:    OPWORD    $A8F3
  1411.     ELSE
  1412.         IMPORT_CFM_FUNCTION    OpenPicture
  1413.     ENDIF
  1414.  
  1415. ;
  1416. ; pascal void PicComment(short kind, short dataSize, Handle dataHandle)
  1417. ;
  1418.     IF ¬ GENERATINGCFM THEN
  1419.         _PicComment:    OPWORD    $A8F2
  1420.     ELSE
  1421.         IMPORT_CFM_FUNCTION    PicComment
  1422.     ENDIF
  1423.  
  1424. ;
  1425. ; pascal void ClosePicture(void)
  1426. ;
  1427.     IF ¬ GENERATINGCFM THEN
  1428.         _ClosePicture:    OPWORD    $A8F4
  1429.     ELSE
  1430.         IMPORT_CFM_FUNCTION    ClosePicture
  1431.     ENDIF
  1432.  
  1433. ;
  1434. ; pascal void DrawPicture(PicHandle myPicture, const Rect *dstRect)
  1435. ;
  1436.     IF ¬ GENERATINGCFM THEN
  1437.         _DrawPicture:    OPWORD    $A8F6
  1438.     ELSE
  1439.         IMPORT_CFM_FUNCTION    DrawPicture
  1440.     ENDIF
  1441.  
  1442. ;
  1443. ; pascal void KillPicture(PicHandle myPicture)
  1444. ;
  1445.     IF ¬ GENERATINGCFM THEN
  1446.         _KillPicture:    OPWORD    $A8F5
  1447.     ELSE
  1448.         IMPORT_CFM_FUNCTION    KillPicture
  1449.     ENDIF
  1450.  
  1451. ;
  1452. ; pascal PolyHandle OpenPoly(void)
  1453. ;
  1454.     IF ¬ GENERATINGCFM THEN
  1455.         _OpenPoly:    OPWORD    $A8CB
  1456.     ELSE
  1457.         IMPORT_CFM_FUNCTION    OpenPoly
  1458.     ENDIF
  1459.  
  1460. ;
  1461. ; pascal void ClosePoly(void)
  1462. ;
  1463.     IF ¬ GENERATINGCFM THEN
  1464.         _ClosePoly:    OPWORD    $A8CC
  1465.     ELSE
  1466.         IMPORT_CFM_FUNCTION    ClosePoly
  1467.     ENDIF
  1468.  
  1469. ;
  1470. ; pascal void KillPoly(PolyHandle poly)
  1471. ;
  1472.     IF ¬ GENERATINGCFM THEN
  1473.         _KillPoly:    OPWORD    $A8CD
  1474.     ELSE
  1475.         IMPORT_CFM_FUNCTION    KillPoly
  1476.     ENDIF
  1477.  
  1478. ;
  1479. ; pascal void OffsetPoly(PolyHandle poly, short dh, short dv)
  1480. ;
  1481.     IF ¬ GENERATINGCFM THEN
  1482.         _OffsetPoly:    OPWORD    $A8CE
  1483.     ELSE
  1484.         IMPORT_CFM_FUNCTION    OffsetPoly
  1485.     ENDIF
  1486.  
  1487. ;
  1488. ; pascal void FramePoly(PolyHandle poly)
  1489. ;
  1490.     IF ¬ GENERATINGCFM THEN
  1491.         _FramePoly:    OPWORD    $A8C6
  1492.     ELSE
  1493.         IMPORT_CFM_FUNCTION    FramePoly
  1494.     ENDIF
  1495.  
  1496. ;
  1497. ; pascal void PaintPoly(PolyHandle poly)
  1498. ;
  1499.     IF ¬ GENERATINGCFM THEN
  1500.         _PaintPoly:    OPWORD    $A8C7
  1501.     ELSE
  1502.         IMPORT_CFM_FUNCTION    PaintPoly
  1503.     ENDIF
  1504.  
  1505. ;
  1506. ; pascal void ErasePoly(PolyHandle poly)
  1507. ;
  1508.     IF ¬ GENERATINGCFM THEN
  1509.         _ErasePoly:    OPWORD    $A8C8
  1510.     ELSE
  1511.         IMPORT_CFM_FUNCTION    ErasePoly
  1512.     ENDIF
  1513.  
  1514. ;
  1515. ; pascal void InvertPoly(PolyHandle poly)
  1516. ;
  1517.     IF ¬ GENERATINGCFM THEN
  1518.         _InvertPoly:    OPWORD    $A8C9
  1519.     ELSE
  1520.         IMPORT_CFM_FUNCTION    InvertPoly
  1521.     ENDIF
  1522.  
  1523. ;
  1524. ; pascal void FillPoly(PolyHandle poly, const Pattern *pat)
  1525. ;
  1526.     IF ¬ GENERATINGCFM THEN
  1527.         _FillPoly:    OPWORD    $A8CA
  1528.     ELSE
  1529.         IMPORT_CFM_FUNCTION    FillPoly
  1530.     ENDIF
  1531.  
  1532. ;
  1533. ; pascal void SetPt(Point *pt, short h, short v)
  1534. ;
  1535.     IF ¬ GENERATINGCFM THEN
  1536.         _SetPt:    OPWORD    $A880
  1537.     ELSE
  1538.         IMPORT_CFM_FUNCTION    SetPt
  1539.     ENDIF
  1540.  
  1541. ;
  1542. ; pascal void LocalToGlobal(Point *pt)
  1543. ;
  1544.     IF ¬ GENERATINGCFM THEN
  1545.         _LocalToGlobal:    OPWORD    $A870
  1546.     ELSE
  1547.         IMPORT_CFM_FUNCTION    LocalToGlobal
  1548.     ENDIF
  1549.  
  1550. ;
  1551. ; pascal void GlobalToLocal(Point *pt)
  1552. ;
  1553.     IF ¬ GENERATINGCFM THEN
  1554.         _GlobalToLocal:    OPWORD    $A871
  1555.     ELSE
  1556.         IMPORT_CFM_FUNCTION    GlobalToLocal
  1557.     ENDIF
  1558.  
  1559. ;
  1560. ; pascal short Random(void)
  1561. ;
  1562.     IF ¬ GENERATINGCFM THEN
  1563.         _Random:    OPWORD    $A861
  1564.     ELSE
  1565.         IMPORT_CFM_FUNCTION    Random
  1566.     ENDIF
  1567.  
  1568. ;
  1569. ; pascal void StuffHex(void *thingPtr, ConstStr255Param s)
  1570. ;
  1571.     IF ¬ GENERATINGCFM THEN
  1572.         _StuffHex:    OPWORD    $A866
  1573.     ELSE
  1574.         IMPORT_CFM_FUNCTION    StuffHex
  1575.     ENDIF
  1576.  
  1577. ;
  1578. ; pascal Boolean GetPixel(short h, short v)
  1579. ;
  1580.     IF ¬ GENERATINGCFM THEN
  1581.         _GetPixel:    OPWORD    $A865
  1582.     ELSE
  1583.         IMPORT_CFM_FUNCTION    GetPixel
  1584.     ENDIF
  1585.  
  1586. ;
  1587. ; pascal void ScalePt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1588. ;
  1589.     IF ¬ GENERATINGCFM THEN
  1590.         _ScalePt:    OPWORD    $A8F8
  1591.     ELSE
  1592.         IMPORT_CFM_FUNCTION    ScalePt
  1593.     ENDIF
  1594.  
  1595. ;
  1596. ; pascal void MapPt(Point *pt, const Rect *srcRect, const Rect *dstRect)
  1597. ;
  1598.     IF ¬ GENERATINGCFM THEN
  1599.         _MapPt:    OPWORD    $A8F9
  1600.     ELSE
  1601.         IMPORT_CFM_FUNCTION    MapPt
  1602.     ENDIF
  1603.  
  1604. ;
  1605. ; pascal void MapRect(Rect *r, const Rect *srcRect, const Rect *dstRect)
  1606. ;
  1607.     IF ¬ GENERATINGCFM THEN
  1608.         _MapRect:    OPWORD    $A8FA
  1609.     ELSE
  1610.         IMPORT_CFM_FUNCTION    MapRect
  1611.     ENDIF
  1612.  
  1613. ;
  1614. ; pascal void MapRgn(RgnHandle rgn, const Rect *srcRect, const Rect *dstRect)
  1615. ;
  1616.     IF ¬ GENERATINGCFM THEN
  1617.         _MapRgn:    OPWORD    $A8FB
  1618.     ELSE
  1619.         IMPORT_CFM_FUNCTION    MapRgn
  1620.     ENDIF
  1621.  
  1622. ;
  1623. ; pascal void MapPoly(PolyHandle poly, const Rect *srcRect, const Rect *dstRect)
  1624. ;
  1625.     IF ¬ GENERATINGCFM THEN
  1626.         _MapPoly:    OPWORD    $A8FC
  1627.     ELSE
  1628.         IMPORT_CFM_FUNCTION    MapPoly
  1629.     ENDIF
  1630.  
  1631. ;
  1632. ; pascal void SetStdProcs(QDProcs *procs)
  1633. ;
  1634.     IF ¬ GENERATINGCFM THEN
  1635.         _SetStdProcs:    OPWORD    $A8EA
  1636.     ELSE
  1637.         IMPORT_CFM_FUNCTION    SetStdProcs
  1638.     ENDIF
  1639.  
  1640. ;
  1641. ; pascal void StdRect(GrafVerb verb, const Rect *r)
  1642. ;
  1643.     IF ¬ GENERATINGCFM THEN
  1644.         _StdRect:    OPWORD    $A8A0
  1645.     ELSE
  1646.         IMPORT_CFM_FUNCTION    StdRect
  1647.     ENDIF
  1648.  
  1649. ;
  1650. ; pascal void StdRRect(GrafVerb verb, const Rect *r, short ovalWidth, short ovalHeight)
  1651. ;
  1652.     IF ¬ GENERATINGCFM THEN
  1653.         _StdRRect:    OPWORD    $A8AF
  1654.     ELSE
  1655.         IMPORT_CFM_FUNCTION    StdRRect
  1656.     ENDIF
  1657.  
  1658. ;
  1659. ; pascal void StdOval(GrafVerb verb, const Rect *r)
  1660. ;
  1661.     IF ¬ GENERATINGCFM THEN
  1662.         _StdOval:    OPWORD    $A8B6
  1663.     ELSE
  1664.         IMPORT_CFM_FUNCTION    StdOval
  1665.     ENDIF
  1666.  
  1667. ;
  1668. ; pascal void StdArc(GrafVerb verb, const Rect *r, short startAngle, short arcAngle)
  1669. ;
  1670.     IF ¬ GENERATINGCFM THEN
  1671.         _StdArc:    OPWORD    $A8BD
  1672.     ELSE
  1673.         IMPORT_CFM_FUNCTION    StdArc
  1674.     ENDIF
  1675.  
  1676. ;
  1677. ; pascal void StdPoly(GrafVerb verb, PolyHandle poly)
  1678. ;
  1679.     IF ¬ GENERATINGCFM THEN
  1680.         _StdPoly:    OPWORD    $A8C5
  1681.     ELSE
  1682.         IMPORT_CFM_FUNCTION    StdPoly
  1683.     ENDIF
  1684.  
  1685. ;
  1686. ; pascal void StdRgn(GrafVerb verb, RgnHandle rgn)
  1687. ;
  1688.     IF ¬ GENERATINGCFM THEN
  1689.         _StdRgn:    OPWORD    $A8D1
  1690.     ELSE
  1691.         IMPORT_CFM_FUNCTION    StdRgn
  1692.     ENDIF
  1693.  
  1694. ;
  1695. ; pascal void StdBits(const BitMap *srcBits, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  1696. ;
  1697.     IF ¬ GENERATINGCFM THEN
  1698.         _StdBits:    OPWORD    $A8EB
  1699.     ELSE
  1700.         IMPORT_CFM_FUNCTION    StdBits
  1701.     ENDIF
  1702.  
  1703. ;
  1704. ; pascal void StdComment(short kind, short dataSize, Handle dataHandle)
  1705. ;
  1706.     IF ¬ GENERATINGCFM THEN
  1707.         _StdComment:    OPWORD    $A8F1
  1708.     ELSE
  1709.         IMPORT_CFM_FUNCTION    StdComment
  1710.     ENDIF
  1711.  
  1712. ;
  1713. ; pascal void StdGetPic(void *dataPtr, short byteCount)
  1714. ;
  1715.     IF ¬ GENERATINGCFM THEN
  1716.         _StdGetPic:    OPWORD    $A8EE
  1717.     ELSE
  1718.         IMPORT_CFM_FUNCTION    StdGetPic
  1719.     ENDIF
  1720.  
  1721. ;
  1722. ; pascal void StdPutPic(const void *dataPtr, short byteCount)
  1723. ;
  1724.     IF ¬ GENERATINGCFM THEN
  1725.         _StdPutPic:    OPWORD    $A8F0
  1726.     ELSE
  1727.         IMPORT_CFM_FUNCTION    StdPutPic
  1728.     ENDIF
  1729.  
  1730. ;
  1731. ; pascal void AddPt(Point src, Point *dst)
  1732. ;
  1733.     IF ¬ GENERATINGCFM THEN
  1734.         _AddPt:    OPWORD    $A87E
  1735.     ELSE
  1736.         IMPORT_CFM_FUNCTION    AddPt
  1737.     ENDIF
  1738.  
  1739. ;
  1740. ; pascal Boolean EqualPt(Point pt1, Point pt2)
  1741. ;
  1742.     IF ¬ GENERATINGCFM THEN
  1743.         _EqualPt:    OPWORD    $A881
  1744.     ELSE
  1745.         IMPORT_CFM_FUNCTION    EqualPt
  1746.     ENDIF
  1747.  
  1748. ;
  1749. ; pascal Boolean PtInRect(Point pt, const Rect *r)
  1750. ;
  1751.     IF ¬ GENERATINGCFM THEN
  1752.         _PtInRect:    OPWORD    $A8AD
  1753.     ELSE
  1754.         IMPORT_CFM_FUNCTION    PtInRect
  1755.     ENDIF
  1756.  
  1757. ;
  1758. ; pascal void Pt2Rect(Point pt1, Point pt2, Rect *dstRect)
  1759. ;
  1760.     IF ¬ GENERATINGCFM THEN
  1761.         _Pt2Rect:    OPWORD    $A8AC
  1762.     ELSE
  1763.         IMPORT_CFM_FUNCTION    Pt2Rect
  1764.     ENDIF
  1765.  
  1766. ;
  1767. ; pascal void PtToAngle(const Rect *r, Point pt, short *angle)
  1768. ;
  1769.     IF ¬ GENERATINGCFM THEN
  1770.         _PtToAngle:    OPWORD    $A8C3
  1771.     ELSE
  1772.         IMPORT_CFM_FUNCTION    PtToAngle
  1773.     ENDIF
  1774.  
  1775. ;
  1776. ; pascal void SubPt(Point src, Point *dst)
  1777. ;
  1778.     IF ¬ GENERATINGCFM THEN
  1779.         _SubPt:    OPWORD    $A87F
  1780.     ELSE
  1781.         IMPORT_CFM_FUNCTION    SubPt
  1782.     ENDIF
  1783.  
  1784. ;
  1785. ; pascal Boolean PtInRgn(Point pt, RgnHandle rgn)
  1786. ;
  1787.     IF ¬ GENERATINGCFM THEN
  1788.         _PtInRgn:    OPWORD    $A8E8
  1789.     ELSE
  1790.         IMPORT_CFM_FUNCTION    PtInRgn
  1791.     ENDIF
  1792.  
  1793. ;
  1794. ; pascal void StdLine(Point newPt)
  1795. ;
  1796.     IF ¬ GENERATINGCFM THEN
  1797.         _StdLine:    OPWORD    $A890
  1798.     ELSE
  1799.         IMPORT_CFM_FUNCTION    StdLine
  1800.     ENDIF
  1801.  
  1802. ;
  1803. ; pascal void OpenCPort(CGrafPtr port)
  1804. ;
  1805.     IF ¬ GENERATINGCFM THEN
  1806.         _OpenCPort:    OPWORD    $AA00
  1807.     ELSE
  1808.         IMPORT_CFM_FUNCTION    OpenCPort
  1809.     ENDIF
  1810.  
  1811. ;
  1812. ; pascal void InitCPort(CGrafPtr port)
  1813. ;
  1814.     IF ¬ GENERATINGCFM THEN
  1815.         _InitCPort:    OPWORD    $AA01
  1816.     ELSE
  1817.         IMPORT_CFM_FUNCTION    InitCPort
  1818.     ENDIF
  1819.  
  1820. ;
  1821. ; pascal void CloseCPort(CGrafPtr port)
  1822. ;
  1823.     IF ¬ GENERATINGCFM THEN
  1824.         _CloseCPort:    OPWORD    $A87D
  1825.     ELSE
  1826.         IMPORT_CFM_FUNCTION    CloseCPort
  1827.     ENDIF
  1828.  
  1829. ;
  1830. ; pascal PixMapHandle NewPixMap(void)
  1831. ;
  1832.     IF ¬ GENERATINGCFM THEN
  1833.         _NewPixMap:    OPWORD    $AA03
  1834.     ELSE
  1835.         IMPORT_CFM_FUNCTION    NewPixMap
  1836.     ENDIF
  1837.  
  1838. ;
  1839. ; pascal void DisposePixMap(PixMapHandle pm)
  1840. ;
  1841.     IF ¬ GENERATINGCFM THEN
  1842.         _DisposePixMap:    OPWORD    $AA04
  1843.     ELSE
  1844.         IMPORT_CFM_FUNCTION    DisposePixMap
  1845.     ENDIF
  1846.  
  1847. ;
  1848. ; pascal void CopyPixMap(PixMapHandle srcPM, PixMapHandle dstPM)
  1849. ;
  1850.     IF ¬ GENERATINGCFM THEN
  1851.         _CopyPixMap:    OPWORD    $AA05
  1852.     ELSE
  1853.         IMPORT_CFM_FUNCTION    CopyPixMap
  1854.     ENDIF
  1855.  
  1856. ;
  1857. ; pascal PixPatHandle NewPixPat(void)
  1858. ;
  1859.     IF ¬ GENERATINGCFM THEN
  1860.         _NewPixPat:    OPWORD    $AA07
  1861.     ELSE
  1862.         IMPORT_CFM_FUNCTION    NewPixPat
  1863.     ENDIF
  1864.  
  1865. ;
  1866. ; pascal void DisposePixPat(PixPatHandle pp)
  1867. ;
  1868.     IF ¬ GENERATINGCFM THEN
  1869.         _DisposePixPat:    OPWORD    $AA08
  1870.     ELSE
  1871.         IMPORT_CFM_FUNCTION    DisposePixPat
  1872.     ENDIF
  1873.  
  1874. ;
  1875. ; pascal void CopyPixPat(PixPatHandle srcPP, PixPatHandle dstPP)
  1876. ;
  1877.     IF ¬ GENERATINGCFM THEN
  1878.         _CopyPixPat:    OPWORD    $AA09
  1879.     ELSE
  1880.         IMPORT_CFM_FUNCTION    CopyPixPat
  1881.     ENDIF
  1882.  
  1883. ;
  1884. ; pascal void PenPixPat(PixPatHandle pp)
  1885. ;
  1886.     IF ¬ GENERATINGCFM THEN
  1887.         _PenPixPat:    OPWORD    $AA0A
  1888.     ELSE
  1889.         IMPORT_CFM_FUNCTION    PenPixPat
  1890.     ENDIF
  1891.  
  1892. ;
  1893. ; pascal void BackPixPat(PixPatHandle pp)
  1894. ;
  1895.     IF ¬ GENERATINGCFM THEN
  1896.         _BackPixPat:    OPWORD    $AA0B
  1897.     ELSE
  1898.         IMPORT_CFM_FUNCTION    BackPixPat
  1899.     ENDIF
  1900.  
  1901. ;
  1902. ; pascal PixPatHandle GetPixPat(short patID)
  1903. ;
  1904.     IF ¬ GENERATINGCFM THEN
  1905.         _GetPixPat:    OPWORD    $AA0C
  1906.     ELSE
  1907.         IMPORT_CFM_FUNCTION    GetPixPat
  1908.     ENDIF
  1909.  
  1910. ;
  1911. ; pascal void MakeRGBPat(PixPatHandle pp, const RGBColor *myColor)
  1912. ;
  1913.     IF ¬ GENERATINGCFM THEN
  1914.         _MakeRGBPat:    OPWORD    $AA0D
  1915.     ELSE
  1916.         IMPORT_CFM_FUNCTION    MakeRGBPat
  1917.     ENDIF
  1918.  
  1919. ;
  1920. ; pascal void FillCRect(const Rect *r, PixPatHandle pp)
  1921. ;
  1922.     IF ¬ GENERATINGCFM THEN
  1923.         _FillCRect:    OPWORD    $AA0E
  1924.     ELSE
  1925.         IMPORT_CFM_FUNCTION    FillCRect
  1926.     ENDIF
  1927.  
  1928. ;
  1929. ; pascal void FillCOval(const Rect *r, PixPatHandle pp)
  1930. ;
  1931.     IF ¬ GENERATINGCFM THEN
  1932.         _FillCOval:    OPWORD    $AA0F
  1933.     ELSE
  1934.         IMPORT_CFM_FUNCTION    FillCOval
  1935.     ENDIF
  1936.  
  1937. ;
  1938. ; pascal void FillCRoundRect(const Rect *r, short ovalWidth, short ovalHeight, PixPatHandle pp)
  1939. ;
  1940.     IF ¬ GENERATINGCFM THEN
  1941.         _FillCRoundRect:    OPWORD    $AA10
  1942.     ELSE
  1943.         IMPORT_CFM_FUNCTION    FillCRoundRect
  1944.     ENDIF
  1945.  
  1946. ;
  1947. ; pascal void FillCArc(const Rect *r, short startAngle, short arcAngle, PixPatHandle pp)
  1948. ;
  1949.     IF ¬ GENERATINGCFM THEN
  1950.         _FillCArc:    OPWORD    $AA11
  1951.     ELSE
  1952.         IMPORT_CFM_FUNCTION    FillCArc
  1953.     ENDIF
  1954.  
  1955. ;
  1956. ; pascal void FillCRgn(RgnHandle rgn, PixPatHandle pp)
  1957. ;
  1958.     IF ¬ GENERATINGCFM THEN
  1959.         _FillCRgn:    OPWORD    $AA12
  1960.     ELSE
  1961.         IMPORT_CFM_FUNCTION    FillCRgn
  1962.     ENDIF
  1963.  
  1964. ;
  1965. ; pascal void FillCPoly(PolyHandle poly, PixPatHandle pp)
  1966. ;
  1967.     IF ¬ GENERATINGCFM THEN
  1968.         _FillCPoly:    OPWORD    $AA13
  1969.     ELSE
  1970.         IMPORT_CFM_FUNCTION    FillCPoly
  1971.     ENDIF
  1972.  
  1973. ;
  1974. ; pascal void RGBForeColor(const RGBColor *color)
  1975. ;
  1976.     IF ¬ GENERATINGCFM THEN
  1977.         _RGBForeColor:    OPWORD    $AA14
  1978.     ELSE
  1979.         IMPORT_CFM_FUNCTION    RGBForeColor
  1980.     ENDIF
  1981.  
  1982. ;
  1983. ; pascal void RGBBackColor(const RGBColor *color)
  1984. ;
  1985.     IF ¬ GENERATINGCFM THEN
  1986.         _RGBBackColor:    OPWORD    $AA15
  1987.     ELSE
  1988.         IMPORT_CFM_FUNCTION    RGBBackColor
  1989.     ENDIF
  1990.  
  1991. ;
  1992. ; pascal void SetCPixel(short h, short v, const RGBColor *cPix)
  1993. ;
  1994.     IF ¬ GENERATINGCFM THEN
  1995.         _SetCPixel:    OPWORD    $AA16
  1996.     ELSE
  1997.         IMPORT_CFM_FUNCTION    SetCPixel
  1998.     ENDIF
  1999.  
  2000. ;
  2001. ; pascal void SetPortPix(PixMapHandle pm)
  2002. ;
  2003.     IF ¬ GENERATINGCFM THEN
  2004.         _SetPortPix:    OPWORD    $AA06
  2005.     ELSE
  2006.         IMPORT_CFM_FUNCTION    SetPortPix
  2007.     ENDIF
  2008.  
  2009. ;
  2010. ; pascal void GetCPixel(short h, short v, RGBColor *cPix)
  2011. ;
  2012.     IF ¬ GENERATINGCFM THEN
  2013.         _GetCPixel:    OPWORD    $AA17
  2014.     ELSE
  2015.         IMPORT_CFM_FUNCTION    GetCPixel
  2016.     ENDIF
  2017.  
  2018. ;
  2019. ; pascal void GetForeColor(RGBColor *color)
  2020. ;
  2021.     IF ¬ GENERATINGCFM THEN
  2022.         _GetForeColor:    OPWORD    $AA19
  2023.     ELSE
  2024.         IMPORT_CFM_FUNCTION    GetForeColor
  2025.     ENDIF
  2026.  
  2027. ;
  2028. ; pascal void GetBackColor(RGBColor *color)
  2029. ;
  2030.     IF ¬ GENERATINGCFM THEN
  2031.         _GetBackColor:    OPWORD    $AA1A
  2032.     ELSE
  2033.         IMPORT_CFM_FUNCTION    GetBackColor
  2034.     ENDIF
  2035.  
  2036. ;
  2037. ; pascal void SeedCFill(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, short seedH, short seedV, ColorSearchUPP matchProc, long matchData)
  2038. ;
  2039.     IF ¬ GENERATINGCFM THEN
  2040.         _SeedCFill:    OPWORD    $AA50
  2041.     ELSE
  2042.         IMPORT_CFM_FUNCTION    SeedCFill
  2043.     ENDIF
  2044.  
  2045. ;
  2046. ; pascal void CalcCMask(const BitMap *srcBits, const BitMap *dstBits, const Rect *srcRect, const Rect *dstRect, const RGBColor *seedRGB, ColorSearchUPP matchProc, long matchData)
  2047. ;
  2048.     IF ¬ GENERATINGCFM THEN
  2049.         _CalcCMask:    OPWORD    $AA4F
  2050.     ELSE
  2051.         IMPORT_CFM_FUNCTION    CalcCMask
  2052.     ENDIF
  2053.  
  2054. ;
  2055. ; pascal PicHandle OpenCPicture(const OpenCPicParams *newHeader)
  2056. ;
  2057.     IF ¬ GENERATINGCFM THEN
  2058.         _OpenCPicture:    OPWORD    $AA20
  2059.     ELSE
  2060.         IMPORT_CFM_FUNCTION    OpenCPicture
  2061.     ENDIF
  2062.  
  2063. ;
  2064. ; pascal void OpColor(const RGBColor *color)
  2065. ;
  2066.     IF ¬ GENERATINGCFM THEN
  2067.         _OpColor:    OPWORD    $AA21
  2068.     ELSE
  2069.         IMPORT_CFM_FUNCTION    OpColor
  2070.     ENDIF
  2071.  
  2072. ;
  2073. ; pascal void HiliteColor(const RGBColor *color)
  2074. ;
  2075.     IF ¬ GENERATINGCFM THEN
  2076.         _HiliteColor:    OPWORD    $AA22
  2077.     ELSE
  2078.         IMPORT_CFM_FUNCTION    HiliteColor
  2079.     ENDIF
  2080.  
  2081. ;
  2082. ; pascal void DisposeCTable(CTabHandle cTable)
  2083. ;
  2084.     IF ¬ GENERATINGCFM THEN
  2085.         _DisposeCTable:    OPWORD    $AA24
  2086.     ELSE
  2087.         IMPORT_CFM_FUNCTION    DisposeCTable
  2088.     ENDIF
  2089.  
  2090. ;
  2091. ; pascal CTabHandle GetCTable(short ctID)
  2092. ;
  2093.     IF ¬ GENERATINGCFM THEN
  2094.         _GetCTable:    OPWORD    $AA18
  2095.     ELSE
  2096.         IMPORT_CFM_FUNCTION    GetCTable
  2097.     ENDIF
  2098.  
  2099. ;
  2100. ; pascal CCrsrHandle GetCCursor(short crsrID)
  2101. ;
  2102.     IF ¬ GENERATINGCFM THEN
  2103.         _GetCCursor:    OPWORD    $AA1B
  2104.     ELSE
  2105.         IMPORT_CFM_FUNCTION    GetCCursor
  2106.     ENDIF
  2107.  
  2108. ;
  2109. ; pascal void SetCCursor(CCrsrHandle cCrsr)
  2110. ;
  2111.     IF ¬ GENERATINGCFM THEN
  2112.         _SetCCursor:    OPWORD    $AA1C
  2113.     ELSE
  2114.         IMPORT_CFM_FUNCTION    SetCCursor
  2115.     ENDIF
  2116.  
  2117. ;
  2118. ; pascal void AllocCursor(void)
  2119. ;
  2120.     IF ¬ GENERATINGCFM THEN
  2121.         _AllocCursor:    OPWORD    $AA1D
  2122.     ELSE
  2123.         IMPORT_CFM_FUNCTION    AllocCursor
  2124.     ENDIF
  2125.  
  2126. ;
  2127. ; pascal void DisposeCCursor(CCrsrHandle cCrsr)
  2128. ;
  2129.     IF ¬ GENERATINGCFM THEN
  2130.         _DisposeCCursor:    OPWORD    $AA26
  2131.     ELSE
  2132.         IMPORT_CFM_FUNCTION    DisposeCCursor
  2133.     ENDIF
  2134.  
  2135.     IF OLDROUTINELOCATIONS  THEN
  2136. ;
  2137. ; pascal CIconHandle GetCIcon(short iconID)
  2138. ;
  2139.     IF ¬ GENERATINGCFM THEN
  2140.         _GetCIcon:    OPWORD    $AA1E
  2141.     ELSE
  2142.         IMPORT_CFM_FUNCTION    GetCIcon
  2143.     ENDIF
  2144.  
  2145. ;
  2146. ; pascal void PlotCIcon(const Rect *theRect, CIconHandle theIcon)
  2147. ;
  2148.     IF ¬ GENERATINGCFM THEN
  2149.         _PlotCIcon:    OPWORD    $AA1F
  2150.     ELSE
  2151.         IMPORT_CFM_FUNCTION    PlotCIcon
  2152.     ENDIF
  2153.  
  2154. ;
  2155. ; pascal void DisposeCIcon(CIconHandle theIcon)
  2156. ;
  2157.     IF ¬ GENERATINGCFM THEN
  2158.         _DisposeCIcon:    OPWORD    $AA25
  2159.     ELSE
  2160.         IMPORT_CFM_FUNCTION    DisposeCIcon
  2161.     ENDIF
  2162.  
  2163.     ENDIF
  2164. ;
  2165. ; pascal void SetStdCProcs(CQDProcs *procs)
  2166. ;
  2167.     IF ¬ GENERATINGCFM THEN
  2168.         _SetStdCProcs:    OPWORD    $AA4E
  2169.     ELSE
  2170.         IMPORT_CFM_FUNCTION    SetStdCProcs
  2171.     ENDIF
  2172.  
  2173. ;
  2174. ; pascal GDHandle GetMaxDevice(const Rect *globalRect)
  2175. ;
  2176.     IF ¬ GENERATINGCFM THEN
  2177.         _GetMaxDevice:    OPWORD    $AA27
  2178.     ELSE
  2179.         IMPORT_CFM_FUNCTION    GetMaxDevice
  2180.     ENDIF
  2181.  
  2182. ;
  2183. ; pascal long GetCTSeed(void)
  2184. ;
  2185.     IF ¬ GENERATINGCFM THEN
  2186.         _GetCTSeed:    OPWORD    $AA28
  2187.     ELSE
  2188.         IMPORT_CFM_FUNCTION    GetCTSeed
  2189.     ENDIF
  2190.  
  2191. ;
  2192. ; pascal GDHandle GetDeviceList(void)
  2193. ;
  2194.     IF ¬ GENERATINGCFM THEN
  2195.         _GetDeviceList:    OPWORD    $AA29
  2196.     ELSE
  2197.         IMPORT_CFM_FUNCTION    GetDeviceList
  2198.     ENDIF
  2199.  
  2200. ;
  2201. ; pascal GDHandle GetMainDevice(void)
  2202. ;
  2203.     IF ¬ GENERATINGCFM THEN
  2204.         _GetMainDevice:    OPWORD    $AA2A
  2205.     ELSE
  2206.         IMPORT_CFM_FUNCTION    GetMainDevice
  2207.     ENDIF
  2208.  
  2209. ;
  2210. ; pascal GDHandle GetNextDevice(GDHandle curDevice)
  2211. ;
  2212.     IF ¬ GENERATINGCFM THEN
  2213.         _GetNextDevice:    OPWORD    $AA2B
  2214.     ELSE
  2215.         IMPORT_CFM_FUNCTION    GetNextDevice
  2216.     ENDIF
  2217.  
  2218. ;
  2219. ; pascal Boolean TestDeviceAttribute(GDHandle gdh, short attribute)
  2220. ;
  2221.     IF ¬ GENERATINGCFM THEN
  2222.         _TestDeviceAttribute:    OPWORD    $AA2C
  2223.     ELSE
  2224.         IMPORT_CFM_FUNCTION    TestDeviceAttribute
  2225.     ENDIF
  2226.  
  2227. ;
  2228. ; pascal void SetDeviceAttribute(GDHandle gdh, short attribute, Boolean value)
  2229. ;
  2230.     IF ¬ GENERATINGCFM THEN
  2231.         _SetDeviceAttribute:    OPWORD    $AA2D
  2232.     ELSE
  2233.         IMPORT_CFM_FUNCTION    SetDeviceAttribute
  2234.     ENDIF
  2235.  
  2236. ;
  2237. ; pascal void InitGDevice(short qdRefNum, long mode, GDHandle gdh)
  2238. ;
  2239.     IF ¬ GENERATINGCFM THEN
  2240.         _InitGDevice:    OPWORD    $AA2E
  2241.     ELSE
  2242.         IMPORT_CFM_FUNCTION    InitGDevice
  2243.     ENDIF
  2244.  
  2245. ;
  2246. ; pascal GDHandle NewGDevice(short refNum, long mode)
  2247. ;
  2248.     IF ¬ GENERATINGCFM THEN
  2249.         _NewGDevice:    OPWORD    $AA2F
  2250.     ELSE
  2251.         IMPORT_CFM_FUNCTION    NewGDevice
  2252.     ENDIF
  2253.  
  2254. ;
  2255. ; pascal void DisposeGDevice(GDHandle gdh)
  2256. ;
  2257.     IF ¬ GENERATINGCFM THEN
  2258.         _DisposeGDevice:    OPWORD    $AA30
  2259.     ELSE
  2260.         IMPORT_CFM_FUNCTION    DisposeGDevice
  2261.     ENDIF
  2262.  
  2263. ;
  2264. ; pascal void SetGDevice(GDHandle gd)
  2265. ;
  2266.     IF ¬ GENERATINGCFM THEN
  2267.         _SetGDevice:    OPWORD    $AA31
  2268.     ELSE
  2269.         IMPORT_CFM_FUNCTION    SetGDevice
  2270.     ENDIF
  2271.  
  2272. ;
  2273. ; pascal GDHandle GetGDevice(void)
  2274. ;
  2275.     IF ¬ GENERATINGCFM THEN
  2276.         _GetGDevice:    OPWORD    $AA32
  2277.     ELSE
  2278.         IMPORT_CFM_FUNCTION    GetGDevice
  2279.     ENDIF
  2280.  
  2281. ;
  2282. ; pascal long Color2Index(const RGBColor *myColor)
  2283. ;
  2284.     IF ¬ GENERATINGCFM THEN
  2285.         _Color2Index:    OPWORD    $AA33
  2286.     ELSE
  2287.         IMPORT_CFM_FUNCTION    Color2Index
  2288.     ENDIF
  2289.  
  2290. ;
  2291. ; pascal void Index2Color(long index, RGBColor *aColor)
  2292. ;
  2293.     IF ¬ GENERATINGCFM THEN
  2294.         _Index2Color:    OPWORD    $AA34
  2295.     ELSE
  2296.         IMPORT_CFM_FUNCTION    Index2Color
  2297.     ENDIF
  2298.  
  2299. ;
  2300. ; pascal void InvertColor(RGBColor *myColor)
  2301. ;
  2302.     IF ¬ GENERATINGCFM THEN
  2303.         _InvertColor:    OPWORD    $AA35
  2304.     ELSE
  2305.         IMPORT_CFM_FUNCTION    InvertColor
  2306.     ENDIF
  2307.  
  2308. ;
  2309. ; pascal Boolean RealColor(const RGBColor *color)
  2310. ;
  2311.     IF ¬ GENERATINGCFM THEN
  2312.         _RealColor:    OPWORD    $AA36
  2313.     ELSE
  2314.         IMPORT_CFM_FUNCTION    RealColor
  2315.     ENDIF
  2316.  
  2317. ;
  2318. ; pascal void GetSubTable(CTabHandle myColors, short iTabRes, CTabHandle targetTbl)
  2319. ;
  2320.     IF ¬ GENERATINGCFM THEN
  2321.         _GetSubTable:    OPWORD    $AA37
  2322.     ELSE
  2323.         IMPORT_CFM_FUNCTION    GetSubTable
  2324.     ENDIF
  2325.  
  2326. ;
  2327. ; pascal void MakeITable(CTabHandle cTabH, ITabHandle iTabH, short res)
  2328. ;
  2329.     IF ¬ GENERATINGCFM THEN
  2330.         _MakeITable:    OPWORD    $AA39
  2331.     ELSE
  2332.         IMPORT_CFM_FUNCTION    MakeITable
  2333.     ENDIF
  2334.  
  2335. ;
  2336. ; pascal void AddSearch(ColorSearchUPP searchProc)
  2337. ;
  2338.     IF ¬ GENERATINGCFM THEN
  2339.         _AddSearch:    OPWORD    $AA3A
  2340.     ELSE
  2341.         IMPORT_CFM_FUNCTION    AddSearch
  2342.     ENDIF
  2343.  
  2344. ;
  2345. ; pascal void AddComp(ColorComplementUPP compProc)
  2346. ;
  2347.     IF ¬ GENERATINGCFM THEN
  2348.         _AddComp:    OPWORD    $AA3B
  2349.     ELSE
  2350.         IMPORT_CFM_FUNCTION    AddComp
  2351.     ENDIF
  2352.  
  2353. ;
  2354. ; pascal void DelSearch(ColorSearchUPP searchProc)
  2355. ;
  2356.     IF ¬ GENERATINGCFM THEN
  2357.         _DelSearch:    OPWORD    $AA4C
  2358.     ELSE
  2359.         IMPORT_CFM_FUNCTION    DelSearch
  2360.     ENDIF
  2361.  
  2362. ;
  2363. ; pascal void DelComp(ColorComplementUPP compProc)
  2364. ;
  2365.     IF ¬ GENERATINGCFM THEN
  2366.         _DelComp:    OPWORD    $AA4D
  2367.     ELSE
  2368.         IMPORT_CFM_FUNCTION    DelComp
  2369.     ENDIF
  2370.  
  2371. ;
  2372. ; pascal void SetClientID(short id)
  2373. ;
  2374.     IF ¬ GENERATINGCFM THEN
  2375.         _SetClientID:    OPWORD    $AA3C
  2376.     ELSE
  2377.         IMPORT_CFM_FUNCTION    SetClientID
  2378.     ENDIF
  2379.  
  2380. ;
  2381. ; pascal void ProtectEntry(short index, Boolean protect)
  2382. ;
  2383.     IF ¬ GENERATINGCFM THEN
  2384.         _ProtectEntry:    OPWORD    $AA3D
  2385.     ELSE
  2386.         IMPORT_CFM_FUNCTION    ProtectEntry
  2387.     ENDIF
  2388.  
  2389. ;
  2390. ; pascal void ReserveEntry(short index, Boolean reserve)
  2391. ;
  2392.     IF ¬ GENERATINGCFM THEN
  2393.         _ReserveEntry:    OPWORD    $AA3E
  2394.     ELSE
  2395.         IMPORT_CFM_FUNCTION    ReserveEntry
  2396.     ENDIF
  2397.  
  2398. ;
  2399. ; pascal void SetEntries(short start, short count, CSpecArray aTable)
  2400. ;
  2401.     IF ¬ GENERATINGCFM THEN
  2402.         _SetEntries:    OPWORD    $AA3F
  2403.     ELSE
  2404.         IMPORT_CFM_FUNCTION    SetEntries
  2405.     ENDIF
  2406.  
  2407. ;
  2408. ; pascal void SaveEntries(CTabHandle srcTable, CTabHandle resultTable, ReqListRec *selection)
  2409. ;
  2410.     IF ¬ GENERATINGCFM THEN
  2411.         _SaveEntries:    OPWORD    $AA49
  2412.     ELSE
  2413.         IMPORT_CFM_FUNCTION    SaveEntries
  2414.     ENDIF
  2415.  
  2416. ;
  2417. ; pascal void RestoreEntries(CTabHandle srcTable, CTabHandle dstTable, ReqListRec *selection)
  2418. ;
  2419.     IF ¬ GENERATINGCFM THEN
  2420.         _RestoreEntries:    OPWORD    $AA4A
  2421.     ELSE
  2422.         IMPORT_CFM_FUNCTION    RestoreEntries
  2423.     ENDIF
  2424.  
  2425. ;
  2426. ; pascal short QDError(void)
  2427. ;
  2428.     IF ¬ GENERATINGCFM THEN
  2429.         _QDError:    OPWORD    $AA40
  2430.     ELSE
  2431.         IMPORT_CFM_FUNCTION    QDError
  2432.     ENDIF
  2433.  
  2434. ;
  2435. ; pascal void CopyDeepMask(const BitMap *srcBits, const BitMap *maskBits, const BitMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect, short mode, RgnHandle maskRgn)
  2436. ;
  2437.     IF ¬ GENERATINGCFM THEN
  2438.         _CopyDeepMask:    OPWORD    $AA51
  2439.     ELSE
  2440.         IMPORT_CFM_FUNCTION    CopyDeepMask
  2441.     ENDIF
  2442.  
  2443. ;
  2444. ; pascal void DeviceLoop(RgnHandle drawingRgn, DeviceLoopDrawingUPP drawingProc, long userData, DeviceLoopFlags flags)
  2445. ;
  2446.     IF ¬ GENERATINGCFM THEN
  2447.         _DeviceLoop:    OPWORD    $ABCA
  2448.     ELSE
  2449.         IMPORT_CFM_FUNCTION    DeviceLoop
  2450.     ENDIF
  2451.  
  2452. ;
  2453. ; pascal Ptr GetMaskTable(void)
  2454. ;
  2455.     IF ¬ GENERATINGCFM THEN
  2456.         ; returns: 
  2457.         ;     Ptr               <= A0
  2458.         _GetMaskTable:    OPWORD    $A836
  2459.     ELSE
  2460.         IMPORT_CFM_FUNCTION    GetMaskTable
  2461.     ENDIF
  2462.  
  2463.     IF OLDROUTINENAMES  THEN
  2464.     ENDIF
  2465.     ENDIF ; __QUICKDRAW__
  2466.